Kutu_Kucing

socket

Jan 23rd, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2. use strict;
  3. use IO::Socket;
  4. sub Wait {
  5. wait;
  6. }
  7. $SIG{CHLD} = \&Wait;
  8. my $server = IO::Socket::INET->new(
  9. LocalPort => 2018, # set port
  10. Type => SOCK_STREAM,
  11. Reuse => 1,
  12. Listen => 10) or die "$@\n";
  13. my $client ;
  14. while($client = $server->accept()) {
  15. select $client;
  16. print $client "HTTP/1.0 200 OK\r\n";
  17. print $client "Content-type: text/html\r\n\r\n";
  18. print $client '<body bgcolor=black> <center><font color=cyan size=20px>You Got Hacked By DK72</font></br></br></br><img src="https://cdn.yukepo.com/content-images/listicle-images/2017/06/03/43770.jpg" widht=20px hight=20px></br></br></br><font color=red>♥ GARUDA TERSAKTI TEAM ♥</font></center></body>';
  19. }
  20. continue
  21. {
  22. close($client); #kills hangs kill CHLD => -$$;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment