vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Telnet/ SSH Web Shell in Admin CP (https://vborg.vbsupport.ru/showthread.php?t=65926)

Erwin 06-06-2004 10:00 PM

vB Telnet/ SSH Web Shell in Admin CP
 
vB Telnet/ SSH Web Shell by Dr Erwin Loh version 1.0

This allows you Telnet/ SSH Shell access via your vB 3.x.x Admin CP.
This is very useful if you are somewhere where you cannot get Telnet or SSH shell access, or you are behind a firewall.

Disclaimer: The author does not take responsibility for any detriment that comes out of the use of this script. Use at your own risk!


Installation (full instructions in Install.txt in ZIP file):

1) Set a second layer of popup usernames and passwords for added security.
2) Upload "ssh.php" to your /admincp folder.

3) Make a link to the SSH shell in your Admin CP.

Finish!

Once this is installed, you can just click on the "vB SSH/ Telnet" link in your Admin CP on the left column underneath your "vBulletin Options" to access this.


Enjoy! :)

Dr. Erwin Loh

Natch 06-07-2004 10:23 AM

Excuse the profanity, but OMFG - what a treat it is to see you at work!

Thanks for this one!

DaveLogic 06-07-2004 10:41 AM

Excellant !!!

Odysseus 06-07-2004 11:56 AM

Magnificant! ;)
I will install this asap.

But ... might this be a great security leak? Can you user "su" to becom root? :ninja:

Floris 06-07-2004 12:11 PM

Quote:

Originally Posted by Odysseus
Magnificant! ;)
I will install this asap.

But ... might this be a great security leak? Can you user "su" to becom root? :ninja:

If they know the su password, they don't need to login through the admincp first :D They can login remote anyway through different means.

mOdEtWo 06-07-2004 12:59 PM

Wow, great hack. How do you do it. I've been looking for this actually, since I'm behind a firewall.

Thanks a lot. :)

mOdEtWo 06-07-2004 01:07 PM

Can this be used outside of vB?

13th_Disciple 06-07-2004 03:50 PM

Erwin.. I have tried to use web based ssh clients before and have not been able to use them when I was behind a firewall.. Is all of the port 22 data handled by the admin CP from within the server, or is the browser from the client-side actually trying to connect to port 22??

Xenon 06-07-2004 05:55 PM

Wow :)

You have so much time to release Hacks, you would have had enough time to stay here as admin ;)

mOdEtWo 06-07-2004 06:58 PM

it seems to log in as nobody on the server, is it possible to log in as my user?

I'm of course not allowed to run 'su'

Erwin 06-07-2004 07:50 PM

Quote:

Originally Posted by 13th_Disciple
Erwin.. I have tried to use web based ssh clients before and have not been able to use them when I was behind a firewall.. Is all of the port 22 data handled by the admin CP from within the server, or is the browser from the client-side actually trying to connect to port 22??

It uses port 80, http, not port 22. :) So it bypasses firewalls.

No, you can't su -.

At the moment, because apache/ httpd is usually owned by nobody, you log in as nobody. I can see if that can be bypassed, but then that would be a security issue.

@Xenon - these are just hacks I use on my site. Thought I would share. :)

Xenon 06-07-2004 08:32 PM

Even so i miss you :p

hmm, can't you change your account so 'login as'
(i can't test it, as i don't think i should install this here ^^)

neocorteqz 06-08-2004 03:17 AM

Code:

Warning: Cannot modify header information - headers already sent by (output started at /home/neocort2/public_html/admincp/ssh.php:1) in /home/neocort2/public_html/admincp/ssh.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home/neocort2/public_html/admincp/ssh.php:1) in /home/neocort2/public_html/admincp/ssh.php on line 148

any ideas?

gmarik 06-08-2004 06:13 AM

Why should we need one?
Any idea?

Erwin 06-08-2004 06:35 AM

Quote:

Originally Posted by gmarik
Why should we need one?
Any idea?

I use it from work, where I don't have SSH access because of the work's firewall. :)

uae 06-08-2004 07:21 AM

Thanks for the Hack,

But I got this error:

Fatal error: Call to undefined function: proc_open() in /home/virtual/site9/fst/var/www/html/forums/admincp/ssh.php on line 127

anyone?

Erwin 06-08-2004 10:49 AM

Quote:

Originally Posted by uae
Thanks for the Hack,

But I got this error:

Fatal error: Call to undefined function: proc_open() in /home/virtual/site9/fst/var/www/html/forums/admincp/ssh.php on line 127

anyone?

What version php are you running?

scottct1 06-08-2004 01:06 PM

Now only if this support VT100 emulation so I could watch TOP. :)

As the owner of my server I do wish I could do su so I could restart processes. Or at least I wish you could get a ssh login prompt so I can login with the user who I want to access various parts of my server. :)

Great work!

uae 06-08-2004 03:17 PM

Quote:

Originally Posted by Erwin
What version php are you running?

PHP Version 4.2.2

Erwin 06-08-2004 08:00 PM

Quote:

Originally Posted by uae
PHP Version 4.2.2

Mmm... not sure - I do suggest upgrading to 4.3.6 (even 4.3.7 is out).

neocorteqz 06-09-2004 02:16 AM

Quote:

Originally Posted by neocorteqz
Code:

Warning: Cannot modify header information - headers already sent by (output started at /home/neocort2/public_html/admincp/ssh.php:1) in /home/neocort2/public_html/admincp/ssh.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home/neocort2/public_html/admincp/ssh.php:1) in /home/neocort2/public_html/admincp/ssh.php on line 148

any ideas?

bump. :)

Erwin 06-09-2004 03:26 AM

Quote:

Originally Posted by neocorteqz
bump. :)

Seriously, I have no idea why that's the case. :) Try removing the header references in ssh.php

neocorteqz 06-09-2004 09:07 AM

Quote:

Originally Posted by Erwin
Seriously, I have no idea why that's the case. :) Try removing the header references in ssh.php

I'll comment those out and let ya know. :)

croft 06-09-2004 12:09 PM

hmm it seams i can not use this lovely script =( Mayby just a easy thing to fix.

Everytime i enter the name and pass in the popup window the popup windows cleares and i have to add it again. ??? i can not use this script yet =(
Anybody knows why this is the case ?

Erwin 06-09-2004 08:02 PM

Quote:

Originally Posted by croft
hmm it seams i can not use this lovely script =( Mayby just a easy thing to fix.

Everytime i enter the name and pass in the popup window the popup windows cleares and i have to add it again. ??? i can not use this script yet =(
Anybody knows why this is the case ?

Do you .htaccess protect your admin directory? If you do, then you can't use the popup password in this script - comment that section out in the php file.

croft 06-10-2004 12:33 AM

I do not use htacces.
but im gonna try do that anyway.

Zelda-King 06-10-2004 10:23 PM

I've installed it. I can't seem to make use of it due to the said issue of being logged in as 'nobody' and without a password. I get no prompt for a password.

alqadir 12-18-2004 10:50 AM

I just installed your script, but it keeps asking for a user name /password again and again. I enter all three user names and passwords -- but still not luck.

i changed the passwords and still same error!

mokujin 10-23-2008 09:24 PM

I tried in vbb 3.7.3 but the are errors :( Can you make update? thanks


All times are GMT. The time now is 04:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01158 seconds
  • Memory Usage 1,778KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete