Silk Road forums

Discussion => Off topic => Topic started by: Bish0p on March 27, 2012, 02:45 am

Title: Gray Hat Python: for hackers and reverse engineers.
Post by: Bish0p on March 27, 2012, 02:45 am
So, I have been working through this book (Gray Hat Python: for hackers and reverse engineers) and I have encountered a problem in chapter 3 that I need some help with.

I have searched google and found some corrections to make. However, those corrections did not fix my problem.

I can get the basic code for the "my_debugger" program to work but I keep getting an error after I add the code on page 31. The error I am getting looks like this:

   
Quote
Traceback (most recent call last): File "C:\\Users... my_test.py", line 13, in
    debugger.attach(int(pid))

    AttributeError: debugger instance has no attribute 'attach'



Now, I have gone back over what is on page 31 and reentered it several times, but continue to get the same error. The "my_test" code looks like this.
Quote
    import my_debugger

    debugger = my_debugger.debugger()

    pid = raw_input("Enter the Pid of the process to attach to:")

    debugger.attach(int(pid))

    debugger.detach()

I uploaded the code to the my_debugger program to depositfiles.  Here is the URL:

http://depositfiles.com/files/34esy4g1n


Here is the url to the site where I downloaded the book: (The book is titled, "Gray Hat Python")

http://www.mediafire.com/?t27c8mra8dsu4m7
the password is HackBB


Here is the post where the book was suggested:

http://clsvtzwzdgzkjda7.onion/viewtopic.php?f=12&t=2517&start=10&hilit=gray+hat+python

Any help with this would be much appreciated because this is beginning to give me some serious headaches.