-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create Android SSL pinning example script
- Loading branch information
1 parent
d1d0b64
commit 1c91336
Showing
3 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,4 +149,5 @@ cython_debug/ | |
*.exe | ||
*.build | ||
*.dist | ||
*exectuables* | ||
*exectuables* | ||
*temp* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters