Skip to content

Commit

Permalink
update requirements in setup.py
Browse files Browse the repository at this point in the history
create Android SSL pinning example script
  • Loading branch information
dmdhrumilmistry committed Jul 17, 2022
1 parent d1d0b64 commit 1c91336
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,5 @@ cython_debug/
*.exe
*.build
*.dist
*exectuables*
*exectuables*
*temp*
16 changes: 16 additions & 0 deletions examples/Android/intercept-using-burp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from pyhtools.attackers.Android.mitm.cert_pin import PinCertificate

pinner = PinCertificate(
apk_path=r'/home/hacker/apks/com.application.name.apk', # application package path
package_name=r'com.application.name', # package name of target application
cert_path=r'burp_cert.der', # burpsuite/custom CA certificate
frida_binary_path=r'frida-server-15.1.28-android-x86', # download and update path, (https://github.com/frida/frida/releases)
frida_script_path=r'script.js', # download from frida examples (https://codeshare.frida.re/@pcipolloni/universal-android-ssl-pinning-bypass-with-frida/)
device_name='emulator-5554', # device name from adb
host='127.0.0.1', # adb host
port=5037, # adb port
)

pinner.pin_certificate()

# once certificate is pinned you can exit python script using ctrl+c then return key
26 changes: 14 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,25 @@
packages=find_packages(),
include_package_data=True,
install_requires=[
'beautifulsoup4',
'colorama',
# 'netfilterqueue', # (for linux devices only): sudo pip3 install -U git+https://github.com/kti/python-netfilterqueue
'beautifulsoup4>=4.9.3',
'colorama>=0.4.4',
'frida-tools>=10.8.0',
# 'netfilterqueue', #(for linux devices only): sudo pip3 install --upgrade -U git+https://github.com/kti/python-netfilterqueue,
'kamene>=0.32',
'nuitka',
'kamene',
'scapy',
'psutil',
'prettytable',
'pynput',
'pyfiglet',
'pytelegrambotapi',
'pure-python-adb',
'pyfiglet>=0.8.post1',
'pynput>=1.7.3',
'pytelegrambotapi>=4.0.1',
'prettytable>=2.1.0',
'psutil>=5.8.0',
'pyinstaller',
'requests',
'requests>=2.25.1',
'scapy>=2.4.5',
# 'wmi', # for windows process management
'zstandard',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
Expand Down

0 comments on commit 1c91336

Please sign in to comment.