The rpc server api of https://github.com/cyal1/BcryptMontoya
Project description
PyBurp
install
pip install PyBurp
Basic
import PyBurp
def test(a,b,c,d,e):
print(a,type(a),b,type(b),c,type(c),d,type(d),e,type(e))
return b'asdf'
@PyBurp.expose # some thing wrong. not always work
def test2():
return 'xxx'
PyBurp.expose(test) # recommend
PyBurp.run("127.0.0.1:30051")
Frida
import PyBurp
import time
import frida
def my_message_handler(message, payload):
print(message)
print(payload)
def decrypt(arg):
print(f"decrypt {arg}")
return script.exports.calldecryptfunction(arg)
def encrypt(arg):
print(f"encrypt {arg}")
return script.exports.callencryptfunction(arg)
# device = frida.get_usb_device()
device = frida.get_device_manager().add_remote_device('127.0.0.1:27042')
# pid = device.spawn(["com.example.www"])
# device.resume(pid)
# time.sleep(1) # Without it Java.perform silently fails
# session = device.attach(pid)
session = device.attach(17982)
with open("python_to_call_function.js") as f:
script = session.create_script(f.read())
script.on("message", my_message_handler)
script.load()
print(encrypt("test"))
print(decrypt(encrypt("test")))
PyBurp.expose(decrypt)
PyBurp.expose(encrypt)
PyBurp.run("127.0.0.1:30051")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyBurp-1.0.0.tar.gz
(4.0 kB
view details)
File details
Details for the file PyBurp-1.0.0.tar.gz
.
File metadata
- Download URL: PyBurp-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8b08054680adfb8b0b9652a56b74062399be5a93a69d60f05222f16b7249c30 |
|
MD5 | 8d67c64f351efa53cf7f7068062439b5 |
|
BLAKE2b-256 | be7aec14c535ce3b59b95f6234e1f80f716ee47085de456fb6d58a79539efb8e |