Skip to content

splitline/PHPFuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

PHPFuck: ([+.^])

Using only 7 different characters to write and execute php.

Only support PHP 7+ currently.

Example Code

The following source will execute system('id');:

<?php 
  (((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]).((([].[]))[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])]^(([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([].[]))[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]))([].[]^[].[],((([].[]))[([]^[])]^(([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).((([].[]))[([]^[])]^(([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([].[]))[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]).((([].[]))[([]^[[]])]^(([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])]^(([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])+([]^[[]])+([]^[[]])]^(([].[]))[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[[]]).[])[([]^[])]).((([].[]))[([]^[[]])]^(([].[]))[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]^(([]^[]).[])[([]^[])]))();
?>

Usage

usage: phpfuck.py [-h] [-O FILE] [-P] code

positional arguments:
  code                  any php code to encode.

optional arguments:
  -h, --help            show this help message and exit
  -O FILE, --output-file FILE
                        write encoded code into some file.
  -P, --plain-string    encode as plain string (without eval it).

You can just use it like this: python3 phpfuck.py "system('id');"

About

PHPFuck: ([+.^]) / Using only 7 different characters to write and execute php.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages