EH-Net

Ethical Hacking Discussions and Related Certifications => Programming => Topic started by: O_o on August 11, 2011, 11:41:04 PM



Title: Perhl to P^yThÖñ
Post by: O_o on August 11, 2011, 11:41:04 PM
Is there any python 3 command similar to the perl/php fopen command?


Title: Re: Perhl to P^yThÖñ
Post by: lorddicranius on August 12, 2011, 12:18:27 AM
Not that familiar with Perl or PHP, but a quick (<1min) Google search I found this:

http://www.php2python.com/wiki/function.fopen/

That help?


Title: Re: Perhl to P^yThÖñ
Post by: O_o on August 12, 2011, 08:48:44 AM
Yes sir it helped a lot!
Also do you have to use the hexidecimal form of the number and/or letter when writting an buffer overflow. Here's my script so far in python...

MyFile=(what do I put here the letter A or hexidecimal of A)×3000
open(MyFile)

ps. this is in python 3


Title: Re: Perhl to P^yThÖñ
Post by: lorddicranius on August 12, 2011, 09:14:35 AM
Writing exploit is over my skill level, so we'll have to wait for somebody else to chime in :P


Title: Re: Perhl to P^yThÖñ
Post by: cd1zz on August 14, 2011, 05:34:05 PM
You can do either. For example:

buff = "A" * 1000

is the same thing as

buff = "\x41" * 1000

Just depends on what looks nice to you...