Author Topic: phpsh.php, a simple php shell written in php  (Read 5517 times)

0 Members and 1 Guest are viewing this topic.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
phpsh.php, a simple php shell written in php
« on: April 05, 2012, 03:21:51 pm »
I wrote this thing in my free time. There was already a phpsh written in python made by Facebook, but this one is written in PHP. Features basic auto-completion!

Download link.
« Last Edit: April 05, 2012, 03:22:32 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: phpsh.php, a simple php shell written in php
« Reply #1 on: April 05, 2012, 08:59:26 pm »
Is that the one you use on julosoft.net? I like it, though Backspace doesn't work :/




Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: phpsh.php, a simple php shell written in php
« Reply #2 on: April 05, 2012, 09:09:35 pm »
No, it's a completely different one and it runs in command line, not in a browser.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: phpsh.php, a simple php shell written in php
« Reply #3 on: April 05, 2012, 10:41:04 pm »
By auto completion do you mean how Facebook automatically suggest friend names when you start typing them? Maybe a demo showcasing how it works (for visual people) is in  order?

Also at first I was scared because I misread the title as PWSPHP, and thought a member decided to start making a site using that very outdated and insecure portal. :P

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: phpsh.php, a simple php shell written in php
« Reply #4 on: April 05, 2012, 10:49:43 pm »
Well, how this works, you type a line of PHP code in a prompt and it executes it and when you press tab it complete the function or variable name you were typing, much like Facebook with friend names or bash, the Linux shell. Actually it's exactly like bash. But with PHP.
« Last Edit: April 05, 2012, 10:53:43 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: phpsh.php, a simple php shell written in php
« Reply #5 on: April 05, 2012, 11:08:49 pm »
Hmm I see, so it's a bit more like how in some softwares when you type code, it auto completes the command?

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: phpsh.php, a simple php shell written in php
« Reply #6 on: April 05, 2012, 11:09:44 pm »
Pretty much, yeah.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: phpsh.php, a simple php shell written in php
« Reply #7 on: April 07, 2012, 10:50:07 am »
Oh, I see, it's a terminal for PHP commands :D

I'll try that later.




Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: phpsh.php, a simple php shell written in php
« Reply #8 on: April 07, 2012, 03:05:13 pm »
Heh, I struggled to get this to work until I realized that your link prints the source of that program, NOT actually let you download it... :P

Anyway, went and compiled PHP 5.4.0 to get readline support (apparently Ubuntu/Debian disables it by default.. :P), which also happens to have some improvements to its own shell (php -a).
(See blog post from its dev: http://schlueters.de/blog/archives/133-Now-in-trunk-Improved-interactive-shell.html)

I've set up an online terminal for you guys to play with:
http://withg.us.to:4200/phpsh/ (Juju's PHP Shell)
http://withg.us.to:4200/phpsh_native/ (PHP's native shell)

As always, do no evil, do no evil, and do no evil :P
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: phpsh.php, a simple php shell written in php
« Reply #9 on: April 07, 2012, 04:22:59 pm »
Heh, I struggled to get this to work until I realized that your link prints the source of that program, NOT actually let you download it... :P
I think I accidentally the same thing, downloading the HTML page and attempting to run it as a PHP file :P




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: phpsh.php, a simple php shell written in php
« Reply #10 on: April 08, 2012, 06:42:19 am »
I tried "echo hey", and it didn't add a newline. On bash, I'm pretty sure echo adds a newline, doesn't the same happen on PHP?

Good work Juju!

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: phpsh.php, a simple php shell written in php
« Reply #11 on: April 08, 2012, 11:33:11 am »
I tried "echo hey", and it didn't add a newline. On bash, I'm pretty sure echo adds a newline, doesn't the same happen on PHP?

Good work Juju!
PHP does not add newlines for echo. You must do echo "hey\n" instead.
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)