• Stars
    star
    141
  • Rank 258,691 (Top 6 %)
  • Language
    Python
  • Created almost 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐍 py2so is tool to change the .py to .so, you can use it to hide the source code of py [Deprecated]. Please navigate to Py2sec

Attension

Py2so is now deprecated.

Please go for py2sec which is Cross-Plateform and faster than py2so

https://github.com/cckuailong/py2sec

py2so

English Readme || 中文 Readme

OS Support

Ubuntu or CentOS

What is py2so

  1. py2so is tool to change the .py to .so, you can use it to hide the source code of py
  2. py2so can transfer a single file, more of this, it can certainly transfer the whole project at one time!
  3. The .so file generated by the .py file can be called by the main func as "from module import * "
  4. py2so can detect the .py file and transfer to .so file, also you can determin which file or directory you don't want to change
  5. You can also determin whether keep the source py.
  6. Considering the probality of the user's fault to delete the source .py file, py2so provide a copy of the source to avoid it, the name of it tends to be end with "_old"
  7. py2so work well with python2 and python3, py2 --> py2so.py py3 --> py2so_py3.py

How to config it

sudo bash config.sh

It will ask some space to install some necessary libraries

How to use py2so

Python2

Usage:
  python py2so.py [options] ...
Options:
  -v,  --version    Show the version of the py2so
  -h,  --help       Show the help info
  -p,  --py         Python subversion, default value == 7
                    Example: -p 7  (means you use python2.7)
  -d,  --directory  Directory of your project (if use -d, you change the whole directory)
  -f,  --file       File to be transfered (if use -f, you only change one file)
  -c,  --clear      Clear the origin .py
                    (Warning: the option will delete the .py, but don't be so serious, py2so will give the project a copy)
  -m,  --maintain   List the file or the directory you don't want to transfer
                    Note: The directories should be surrounded by '[]', and must be the relative path to -d's value 
                    Example: -m __init__.py,setup.py,[poc,resource,venv,interface]
Example:
  python py2so.py -f test_file.py
  python py2so.py -d ../test_dir -m __init__.py -c
  python py2so.py -d /home/test/test_dir -m [poc/,resource/,venv/,interface/]
  python py2so.py -d test_dir -m __init__.py,setup.py,[poc/,resource/,venv/,interface/] -c

Python3

Usage:
  python py2so_py3.py [options] ...
Options:
  -v,  --version    Show the version of the py2so_py3
  -h,  --help       Show the help info
  -p,  --py         Python subversion, default value == 6
                    Example: -p 6  (means you use python3.6)
  -d,  --directory  Directory of your project (if use -d, you change the whole directory)
  -f,  --file       File to be transfered (if use -f, you only change one file)
  -c,  --clear      Clear the origin .py
                    (Warning: the option will delete the .py, but don't be so serious, py2so_py3 will give the project a copy)
  -m,  --maintain   List the file or the directory you don't want to transfer
                    Note: The directories should be surrounded by '[]', and must be the relative path to -d's value 
                    Example: -m __init__.py,setup.py,[poc,resource,venv,interface]
Example:
  python py2so_py3.py -f test_file.py
  python py2so_py3.py -d ../test_dir -m __init__.py -c
  python py2so_py3.py -d /home/test/test_dir -m [poc/,resource/,venv/,interface/]
  python py2so_py3.py -d test_dir -m __init__.py,setup.py,[poc/,resource/,venv/,interface/] -c

The whole project before:

demo1

After py2so:

demo2

More Repositories

1

vulbase

各大漏洞文库合集
HTML
727
star
2

reapoc

OpenSource Poc && Vulnerable-Target Storage Box.
PHP
666
star
3

JNDI-Injection-Exploit-Plus

80+ Gadgets(30 More than ysoserial). JNDI-Injection-Exploit-Plus is a tool for generating workable JNDI links and provide background services by starting RMI server,LDAP server and HTTP server.
Java
663
star
4

hostscan

自动化Host碰撞工具,帮助红队快速扩展网络边界,获取更多目标点
Go
539
star
5

awesome-gpt-security

A curated list of awesome security tools, experimental case or other interesting things with LLM or GPT.
514
star
6

py2sec

🐍 py2sec is a Cross-Platform, Fast and Flexible tool to change the .py to .so(Linux and Mac) or .pyd(Win).
Python
482
star
7

HackChrome

⛄ Get the User:Password from Chrome(include version < 80 and version > 80)
Go
333
star
8

SuperAdapters

Finetune ALL LLMs with ALL Adapeters on ALL Platforms!
Python
286
star
9

pocsploit

a lightweight, flexible and novel open source poc verification framework
Python
234
star
10

spring-cloud-function-SpEL-RCE

spring-cloud-function SpEL RCE, Vultarget & Poc
Java
133
star
11

YarnRpcRCE

79
star
12

colorsys-go

🎃 colorsys-go is a go package(or lib) for everyone to transform one color system to another. The transformation is among RGB, YIQ, HLS and HSV.
Go
78
star
13

InformationGather

SRC Assets Information Gather Website(SRC资产信息聚合网站)
Vue
61
star
14

netuser

Add or Delete User via windows api,it can be used when .net is inaccessible.
C++
38
star
15

MosaicImage

自动获取用户指定类别图片,并制作马赛克图片
Go
31
star
16

PocCollect

Poc Collected for study and develop
HTML
31
star
17

CVE-2022-40146_Exploit_Jar

Java
30
star
18

Shyvana

A full vul scanner which contains many aspects (adding)
Go
28
star
19

ICS-Protocal-Detect-Nmap-Script

Some nmap scripts to detetct the infomations of the different ICS Here are 16 main ics protocal scan-scripts include Modbus, S7 and so on.
Lua
28
star
20

gitAutoStar

配合GitStar编写的自动Star工具,稳定快速,跨平台
Go
21
star
21

simHtml

Compare html similarity using structural and style metrics
Go
20
star
22

log4shell_1.x

log4j 1.x RCE Poc -- CVE-2021-4104
Java
20
star
23

Log4j_CVE-2021-45046

Log4j 2.15.0 Privilege Escalation -- CVE-2021-45046
Java
20
star
24

Log4j_dos_CVE-2021-45105

Log4j_dos_CVE-2021-45105
Java
13
star
25

nginx_vultarget

Python
12
star
26

gitAutoStar-py

最新版gitStar自动点赞,使用selenium
Python
11
star
27

HaveIReg

HaveIReg用于查找出特定用户在哪些网站注册过
Python
8
star
28

Interview

面试题整理分享(持续更新ing)
Batchfile
8
star
29

cckuailong.github.io

Writing 1000 Words a Day Changed My Life
HTML
7
star
30

Small_Functions

Some interesting code fragments to please
HTML
6
star
31

awesome-ml-for-cybersecurity-books

PDF books for awesome-ml-for-cybersecurity-books
6
star
32

CS-Fun-500-Questions

计算机科学中有趣的500问
Batchfile
5
star
33

DgaDetect

Use Keras or TFLearn to detetct DGA via LSTM, AMSGrad and NAdam
Python
5
star
34

WebsiteApp

We provide a tiny Anddroid App which collects many website for whoerver wants to get the main information of news in a short time
Java
5
star
35

log4j_RCE_CVE-2021-44832

Java
4
star
36

BGPStream_Operate_Plugin

I write two shell scripts to help people create or delete the bgpcorsaro's plugin with only one shell command.
C
4
star
37

KerGaNs

Various GANs with Keras (With diginmon generator as example)
Python
4
star
38

CVE-2021-2471

Java
3
star
39

Learning

好文章收集整理
3
star
40

Colorsys.jl

🌈 Colorsys.jl is a Julia package(or lib) for everyone to transform one color system to another. The transformation is among RGB, YIQ, HLS and HSV.
Julia
3
star
41

vultarget_web

Python
3
star
42

pget

pget is a go package for people to add parallel download func into there project. (Adapt from the go download client [https://github.com/Code-Hex/pget])
Go
3
star
43

clonehub

clone all images(with all tags) on dockerhub to your own dockerhub repo
Shell
2
star
44

Spark-Scala-Handle

Scala
2
star
45

Test-JNDI-Injection-Exploit-Plus

Examples for JNDI-Injection-Exploit-Plus
Java
2
star
46

DLMovies

提供查询下载电影的网站,爬取各大电影网站
Go
2
star
47

apereo-cas-docker

apereo cas docker-compose (can customize cas version)
Dockerfile
2
star
48

Dga.jl

Dga.jl can make you customize one or many DGAs. The included DGAs are [Banjori,Corebot,Cryptolocker,Dircrypt,Kraken,Lockyv2,Pykspa,Qakbot Ramdo,Ramnit,Simda]
Julia
2
star
49

Leetcode-go

Leetcode write in Golang.
Go
1
star
50

gunicorn_request_smuggling

gunicorn 20.0.4 request smuggling
Python
1
star
51

Spiders

随便写的爬虫
Python
1
star
52

Paper_torrent

Academic papers to download, the data is more than 10 TB
1
star