On Wed, 27 Jun 2012, Bethel, Roy E. wrote:
> Inserted the lines in Peach/Agent/ppprocess.py. Saved. Opened
> HotFuzz. Ran CesarTest.
> Exactly the same result. Hmmmmm. (Note: I primarily use MatLab.)
>
> I noticed all the *.py in Peach/Agent had *.pyc counterparts and the dates
> were the same date I installed HotFuzz.
*.pyc files are compiled (sort of) versions of Python scripts. They are
generated and updated automatically by the Python runtime. As Martin
wrote, you can delete them and force Python to recompile corresponding
source code files. But it should never be necessary as Python is supposed
to keep them up to date.
I am at a loss that your changes to ppprocess.py are ignored (despite
having encountered a problem that seemed to be identical to yours as
described in my postscriptum).
You can try the following things:
1. Modify the original error message ("FAILED TO START..."). Run HotFuzz.
Examine ppprocess.pyc and check whether it was updated and whether
it contains the modified message.
2. Make sure all lines are indented correctly because program structures
are determined by indentation in Python and even minute differences
(spaces instead of tabs) are important. You can use an editor included in
PythonWin GUI (bundled with ActiveState Python).
PS: I am sorry it took me so long to respond. Various circumstances
conspired against me; here is a partial list preserved for the benefit,
education, and amusement of posterity:
1. My installation of HotFuzz succumbed to some kind of bitrot and
stopped working. Every time a fuzzing process was started it crashed in
hf_dissect_init (?) until I removed a bunch of various software
packages and did a complete reinstall of HotFuzz and its dependencies.
2. I wanted to reproduce your problem with *.pyc files. I made proposed
changes to ppprocess.py, broke CesarTest configuration (so as to make it
unable to start a program), started fuzzing... and my changes were
ignored. It regenerated ppprocess.pyc every time I deleted it or changed
ppprocess.py and its contents corresponded to the modified source code but
it kept behaving as if the code had not been changed at all. It turned out
I had broke the wrong part of CesarTest (server instead of client) and the
code where an exception occurred was different from the code I modified
(ppmonitor.py instead of ppprocess.py).
Unfortunately, this does not help to explain your problems. I checked the
output you sent earlier and your exception occurred in ppprocess.py.
--Pavel Kankovsky aka Peak