|
|||||||
| BackTrack 4 Howto Tutorials and Howtos about BackTrack 4 (NOT for requesting tutorials or how to do anything) |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Actually if you want to get really crafty you can use a hexeditor to modify the sshd binary and replace the SSH-2.0-OpenSSH blah string. Etch, for example, defaults to something like OpenSSH Debian-9 - you can edit out the Debian-9 bit.
As with everything binary, you can only replace the particular string pieces with same size (I usually just blank them out), that way you can get something like this: Code:
Last login: Mon Oct 26 17:01:06 on ttys000 [xserve:~] admin% nc localhost 22 SSH-2.0-OpenSSH_5.1 ^C [xserve:~] admin% Advanced Note: You can actually wipe that out as well (but it's easier to firewall it off) so long as you write a wrapper script and use the -o for it. But I'm not going to go into that
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
I just modified the source, recompiled, then replaced the binary, was allot easier i think. However i might just give your way a go for the experience ... any tips on what to use ?
(Edit) took me less than 20min to figure it out, guide is now updated
__________________
Using backtrack for the first time is like being 10 years old again with the keys to a Ferrari. Last edited by vvpalin; 10-27-2009 at 02:15 AM. |
|
||||
|
Hard to do when you apt-get everything in, plus it's good skills to learn to hexedit binaries - especially for changing the way the basics work - like "strings".
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
This is the proper way to do it SSHD hide version patch | 0x80
__________________
dd if=/dev/swc666 of=/dev/wyze |
|
||||
|
Quote:
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
Quote:
Furthermore, hex editing the SSH binary could very well destroy the binary, which for those that would attempt this on a remote box, could very well be S.O.L. if thy did in fact make a mistake.
__________________
dd if=/dev/swc666 of=/dev/wyze |
|
||||
|
Quote:
Quote:
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
Quote:
Another thing i should say real fast, Ive used that modified binary about 20 times now since i edited it, no problems as of yet. Even the vpn works good =0 As with everything there is a risk ... in fact ill put a nice little warning on the main post just in case its not clear.
__________________
Using backtrack for the first time is like being 10 years old again with the keys to a Ferrari. |
|
||||
|
Quote:
Also regarding Apache banners, you can't overlook ModSecurity - namely the SecServerSignature directive, where one can change the Apache server banner to just about anything.
__________________
dd if=/dev/swc666 of=/dev/wyze |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|