黑客技术
点击放大

The Mobile App Pentest cheat sheet was created to provide concise collection of high value information on specific mobile application penetration testing topics and checklist, which is mapped OWASP Mobile Risk Top 10 for conducting pentest.
python manage.py runserver 127.0.0.1:1337apktool d <apk file>apktool b <modified folder>keytool -genkey - keys/test.keystore -alias Test -keyalg RSA -keysize 1024 -sigalg SHA1withRSA - 10000jarsigner -keystore keys/test.keystore dist/test.apk -sigalg SHA1withRSA -digestalg SHA1 Testjava -jar oat2dex.jar boot <boot.oat file>java -jar oat2dex.jar <app.odex> <boot-class-folder output from above>java -jar oat2dex.jar odex <oat file>java -jar oat2dex.jar smali <oat/odex file>simplify.jar -i "input smali files or folder" -o <output dex file>adb backup <package name>dd if=backup.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" > backup.tar#### Dynamic and Runtime Analysis
* Cydia Substrate - Cydia Substrate for Android enables de to make changes to existing software with Substrate extensions that are injected in to the target process's memory.
* Xposed 框架 - Xposed 框架 enables you to modify the system or application aspect and behaviour at runtime, without modifying any Android application package(APK) or re-flashing.
* PID Cat - An update to Jeff Sharkey's excellent logcat color script which only shows log entries for processes from a specific application package.
* Inspeckage - Inspeckage is a 工具 de to offer dynamic analysis of Android applications. By applying hooks to functions of the Android API, Inspeckage will help you understand what an Android application is doing at runtime.
* Frida - The toolkit works using a 客户端-ser and lets you inject in to running processes not just on Android, but also on iOS, Windows and Mac.
* Diff-界面 - A Web 框架 to start instrumenting with the a modules, hooking on nati Ja using Frida.
* Fridump - Fridump is using the Frida 框架 to dump accessible memory addresses from any platform supported. It can be used from a Windows, Linux or Mac OS X system to dump the memory of an iOS, Android or Windows application.
* House - A runtime mobile application analysis toolkit with a Web 界面, powered by Frida, is designed for helping assess mobile applications by implementing dynamic function hooking and intercepting and intended to make Frida script writing as simple as possible.
* AndBug - AndBug is a debugger targeting the Android platform's Dal machine intended for reverse engineers and de.
* Identifying application process using adb shell
* adb shell ps | grep -i "App keyword"
* Accessing the application using AndBug in order to identify loaded classes
* andbug shell -p <process number>
* Tracing specific class
* ct <package name>
* Debugging with jdb
* adb forward tcp:<port> jdwp:<port>
* jdb -attach localhost:<port>
* Cydia Substrate: Introspy-Android - Blackbox 工具 to help understand what an Android application is doing at runtime and assist in the identification of potential security issues.
* Drozer - Drozer allows you to search for security in apps and devices by assuming the role of an app and interacting with the Dalvik apps' IPC endpoints and the underlying OS.
* Starting a session
* adb forward tcp:31415 tcp:31415
* drozer console connect
* Retrieving package information
* run app.package.list -f <app name>
* run app.package.info -a <package name>
* Identifying the attack surface
* run app.package.attacksurface <package name>
* Exploiting Acti
* run app.activity.info -a <package name> -u
* run app.activity.start --component <package name> <component name>
* Exploiting Content Provider
* run app.provider.info -a <package name>
* run scanner.provider.finduris -a <package name>
* run app.provider.query <uri>
* run app.provider.update <uri> --selection <conditions> <selection arg> <column> <data>
* run scanner.provider.sqltables -a <package name>
* run scanner.provider.injection -a <package name>
* run scanner.provider.tra -a <package name>
* Exploiting Broadcast Receivers
* run app.broadcast.info -a <package name>
* run app.broadcast.send --component <package name> <component name> --extra <type> <key> <value>
* run app.broadcast.sniff --action <action>
* Exploiting Service
* run app.service.info -a <package name>
* run app.service.start --action <action> --component <package name> <component name>
* run app.service.send <package name> <component name> --msg <what> <arg1> <arg2> --extra <type> <key> <value> --bundle-as-obj
#### 网络 Analysis and 服务端 Side Testing
* Tcpdump - A command line packet capture utility.
* Wireshark - An open-源码 packet analyzer.
* Li captures in real time
* adb shell "tcpdump -s 0 -w - | nc -l -p 4444"
* adb forward tcp:4444 tcp:4444
* nc localhost 4444 | sudo wireshark -k -S -i –
* Mallory - A Man in The Middle 工具 (MiTM) that use to monitor and manipulate traffic on mobile devices and applications.
* Burp Suite - Burp Suite is an integrated platform for performing security testing of applications.
* Installing trusted CA at the Android OS level (Root device/Emulator) for Android N+ as the following:
* openssl x509 -inform PEM -subject_hash -in BurpCA.pem | head -1
* cat BurpCA.pem > 9a5ba580.0
* openssl x509 -inform PEM -text -in BurpCA.pem -out /dev/null >> 9a5ba580.0
* adb root
* abd remount
* adb push 9a5ba580.0 /system/etc/security/cacerts/
* adb shell “chmod 644 /system/etc/security/cacerts/9a5ba580.0”
* adb shell “reboot”
* Check Settings > Security > Trusted Credentials > SYSTEM to confirm your newly added CA is listed.
* Burp Suite Mobile Assistant - Burp Suite Mobile Assistant is a 工具 to facilitate testing of iOS apps with Burp Suite; It can modify the system-wide proxy settings of iOS devices so that HTTP(S) traffic can be easily redirected to a running instance of Burp, It can attempt to circumvent SSL certificate pinning in selected apps, allowing Burp Suite to break their HTTPS connections and intercept, inspect and modify all traffic.
* OWASP ZAP - OWASP Zed Attack Proxy Project is an open-源码 web application security scanner. It is intended to be used by both those new to application security as well as professional penetration testers.
* Proxydroid - Global Proxy App for Android System.
* mitmproxy - is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets.
#### Bypassing Root Detection and SSL Pinning
* Magisk - Magisk suites provide root access to your device, capability to modify read-only partitions by installing modules and hide Magisk from root detections/system integrity checks.
* Xposed Module: Just Trust Me - Xposed Module to bypass SSL certificate pinning.
* Xposed Module: SSLUnpinning - Android Xposed Module to bypass SSL certificate (Certificate Pinning).
* Cydia Substrate Module: Android SSL Trust Killer - Blackbox 工具 to bypass SSL certificate pinning for most applications running on a device.
* Cydia Substrate Module: RootCoak Plus - Patch root checking for commonly known indications of root.
* Android-ssl-bypass - an Android debugging 工具 that can be used for bypassing SSL, even when certificate pinning is implemented, as well as other debugging tasks. The 工具 runs as an interacti.
* Apk-mitm - A CLI application that automatically prepares Android APK files for HTTPS inspection
* Frida CodeShare - The Frida CodeShare project is comprised of de from around the world working together with one goal - push Frida to its limits in new and inno ways.
* Bypassing Root Detection
* frida --codeshare dzonerzy/fridantiroot -f YOUR_BINARY
* Bypassing SSL Pinning
* frida --codeshare pcipolloni/uning-bypass-with-frida -f YOUR_BINARY
#### Security Libraries
* PublicKey Pinning - Pinning in Android can be accomplished through a custom X509TrustManager. X509TrustManager should perform the customary X509 checks in addition to performing the pinning configuration.
* Android Pinning - A standalone library project for certificate pinning on Android.
* Java AES Crypto - A simple Android class for encrypting & decrypting strings, aiming to avoid the classic mistakes that most such classes suffer from.
* Proguard - ProGuard is a free Ja file shrinker, optimizer, obfuscator, and pre. It detects and remo classes, fields, methods, and attributes.
* SQL Cipher - SQLCipher is an open 源码 extension to SQLite that provides transparent 256-bit AES encryption of 数据库 files.
* Secure Preferences - Android Shared preference wrapper than encrypts the keys and of Shared Preferences.
* Trusted Intents - Library for flexible trusted interactions between Android apps.
* RootBeer - A tasty root checker library and sample app.
* End-to-end encryption - Capillary is a library to simplify the sending of end-to-end encrypted push messages from Ja application servers to Android clients.
#### Reverse Engineering and Static Analysis
* otool - The otool command displays specified parts of object files or libraries.
* Clutch - Decrypted the application and dump specified bundleID into binary or .ipa file.
* Dumpdecrypted - Dumps decrypted mach-o files from encrypted iPhone applications from memory to disk. This 工具 is necessary for security researchers to be able to look under the hood of encryption.
* iPod:~ root# DYLD_INSERT_LIBRARIES=dumpdecrypted.dylib //Applications/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Scan.app/Scan
* class-dump - A command-line utility for examining the Objective-C runtime information stored in Mach-O files.
* dsdump - An improved nm + objc/swift class-dump.
* Weak Classdump - A Cycript script that generates a header file for the class passed to the function. Most useful when you cannot classdump or dumpdecrypted , when binaries are encrypted etc.
* iPod:~ root# cycript -p Skype weak_classdump.cy; cycript -p Skype
* #cy weak_classdump_bundle([NSBundle mainBundle],"/tmp/Skype")
* Fridpa - An automated wrapper script for patching iOS applications (IPA files) and work on non-jailbroken device.
* Frida-iOS-Dump - Pull a decrypted IPA from a jailbroken device.
* bagbak - Yet another frida based iOS dumpdecrypted, supports decrypting app extensions and no SSH required.
* bfinject - bfinject loads arbitrary dylibs into running App Store apps. It has built-in support for decrypting App Store apps, and comes bundled with iSpy and Cycript.
* A Simple Test
* bash bfinject -P Reddit -L test
* Decrypt App Store apps
* bash bfinject -P Reddit -L decrypt
* Cycript
* bash bfinject -P Reddit -L cycript
* HopperApp - Hopper is a reverse engineering 工具 for OS X and Linux, that lets you disassemble, decompile and debug your 32/64bits Intel Mac, Linux, Windows and iOS executables.
* hopperscripts - Hopperscripts can be used to demangle the Swift function name in HopperApp.
* Radare2 - Radare2 is a unix-like reverse engineering 框架 and commandline tools.
* XReSign - XReSign allows you to sign or resign unencrypted ipa-files with certificate for which you hold the corresponding private key. Checked for de, ad-hoc and enterprise distribution.
#### Dynamic and Runtime Analysis
* cycript - Cycript allows de to explore and modify running applications on either iOS or Mac OS X using a hybrid of Objective-C++ and Ja syntax through an interacti that features syntax highlighting and tab completion.
* Show currently view controller
* cy# UIApp.keyWindow.root.
* Show view controller at the top of the na stack
* cy# UIApp.keyWindow.root.top
* Get an array of existing objects of a certain class
* cy# choose(UI)
* UI Dump,cuts off lots of descriptions of UIViews
* cy# [[UIApp keyWindow] _autolayoutTrace].toString()
* Skip UIViews and nextResponders to get directly
* cy# [[[UIApp keyWindow] root] _printHierarchy].toString()
* List method at runtime
* cy# classname.messages or
`
cy# function printMethods(className, isa) {
= new new Type("I");
= (isa != undefined) ? objc_getClass(className)->isa : objc_getClass(className);
= class_copyMethodList(classObj, count);
= [];
for(var i = 0; i < *count; i++) {
= methods[i];
methodsArray.push({selector:method_getName(method), implementation:method_getImplementation(method)});
}
free(methods);
return methodsArray;
}cy# printMethods("<classname>")
*
* cy# a=#0x15d0db80
* Prints out all the instance
* cy# *a
* orcy# a=#0x15d0db80
*
* cy# tryPrintIvars(a)
* cy# [a pinCode]
* Manipulating through property
* cy# [a setPinCode: @"1234"]
* or cy# a.setPinCode= @"1234"cy# [a is]
* Method Swizzling for Instance Method
* cy# <classname>.prototype.is = function(){return 1;}
* cy# [Pin is]
* Method Swizzling for Class Method
* cy# Pin.contructor.prototype.['is'] = function(){return 1;}
*
* iNalyzer - AppSec Labs iNalyzer is a framework for manipulating iOS applications, tampering with parameters and method.
* Grapefruit - Runtime Application Instruments for iOS, pre Passionfruit .
* Introspy-iOS - Blackbox tool to help understand what an iOS application is doing at runtime and assist in the identification of potential security issues.
* Apple configurator 2 - A utility which can be used to view li log on iDevice.
* keychaindumper - A tool to check which keychain items are a to an attacker once an iOS device has been jailbroken.
* BinaryCookieReader - A tool to dump all the cookies from the binary Cookies.binarycookies file.
#### Network Analysis and Server Side Testing
* Mallory - A Man in The Middle Tool (MiTM) that use to monitor and manipulate traffic on mobile devices and applications.
* Burp Suite - Burp Suite is an integrated platform for performing security testing of applications.
* OWASP ZAP - OWASP Zed Attack Proxy Project is an open-source web application security scanner. It is intended to be used by both those new to application security as well as professional penetration testers.
* Charles Proxy - HTTP proxy / HTTP monitor / Reverse Proxy that enables a de to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet.
#### Bypassing Root Detection and SSL Pinning
* SSL Kill Switch 2 - Blackbox tool to disable SSL certificate - including certificate pinning - within iOS and OS X Apps.
* iOS TrustMe - Disable certificate trust checks on iOS devices.
* tsProtector - Another tool for bypassing Jailbreak detection.
* JailProtect - Apart from bypassing jailbreak detection, it also allows you to spoof your iOS firmware easily.
* Shadow - Shadow is a tweak to bypass jailbreak detection that defeats basic detection methods used by many App Store apps.
* Frida CodeShare - The Frida CodeShare project is comprised of de from around the world working together with one goal - push Frida to its limits in new and inno ways.
* Bypassing SSL Pinning
* frida --codeshare lichao890427/ios-ssl-bypass -f YOUR_BINARYfrida --codeshare dki/ios10-ssl-bypass -f YOUR_BINARY`
*
#### Security Libraries
* PublicKey Pinning - iOS pinning is performed through a NSURLConnectionDelegate. The delegate must implement connection:canAuthenticateAgainstProtectionSpace: and connection:didReceie:. Within connection:didReceie:, the delegate must call SecTrustE to perform customary X509 checks.
* Swiftshield - SwiftShield is a 工具 that generates irre, encrypted names for your iOS project's objects (including your Pods and Storyboards) in order to protect your app from tools that reverse engineer iOS apps, like class-dump and Cycript.
* IOSSecuritySuite - iOS Security Suite is an ad and easy-to-use platform security & anti-tampering library written in pure Swift! If you are de for iOS and you want to protect your app according to the OWASP MAS, chapter v8, then this library could save you a lot of time.
* OWASP iMAS - iMAS is a collaborati project from the MITRE Corporation focused on open 源码 iOS security controls.
![Creati License]()
This work is licensed under a Creati Attribution 4.0 International License
开发语言:未知
Star 数:5287
该项目属于黑客技术方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕The Mobile App Pentest cheat sheet was created to provide concise collection of high value information on specific mobile application penetration testing topics.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | MobileApp-Pentest-作弊表 - 移动应用Pentest备忘单的创建目的是 |
| 所属分类 | 黑客技术 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 22:03:06 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 284 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |