Advertisement
MLWALK3R

NetBios [ Perl ]

Mar 10th, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.45 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use IO::Socket;
  4. use strict;
  5.  
  6. my $host = $ARGV[0];
  7. if($host) {
  8. } else {
  9. print "\nUsage: netbios.pl 127.0.0.1\n";
  10. exit;
  11. }
  12. my $port = '139';
  13.  
  14. my $sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$host", PeerPort=>"$port", Timeout=>'15') || die "\nThe slave Machine Was Not Found Vulnerable To NetBIOS\n\n";
  15.  
  16. print "\nThe System You Have Targeted Is Vulnerable To NetBIOS!\n\a";
  17. print $sock;
  18. close(sock);
  19.  
  20. #Coded by Phizo.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement