Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 31 guests online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Programmingarrow Perhl to P^yThÖñ
EH-Net
May 18, 2013, 09:40:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Perhl to P^yThÖñ  (Read 3808 times)
0 Members and 1 Guest are viewing this topic.
O_o
Newbie
*
Offline Offline

Posts: 28


View Profile
« on: August 11, 2011, 11:41:04 PM »

Is there any python 3 command similar to the perl/php fopen command?
Logged

If your computer speaks English, than it was probably made in Japan.
lorddicranius
Sr. Member
****
Offline Offline

Posts: 447



View Profile WWW
« Reply #1 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?
Logged

GSEC, eCPPT, Sec+
O_o
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #2 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
Logged

If your computer speaks English, than it was probably made in Japan.
lorddicranius
Sr. Member
****
Offline Offline

Posts: 447



View Profile WWW
« Reply #3 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 Tongue
Logged

GSEC, eCPPT, Sec+
cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #4 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...
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.052 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.