假設您瞭解到某位開發人員將一堆用戶名和密碼硬編碼到應用程序中,並將其轉化爲Production。哦,哦..!檢查.class文件中的內容
你知道用戶名和密碼 - 有沒有辦法掃描字節碼,並確定是否實際上用戶名,密碼是硬編碼?
假設您瞭解到某位開發人員將一堆用戶名和密碼硬編碼到應用程序中,並將其轉化爲Production。哦,哦..!檢查.class文件中的內容
你知道用戶名和密碼 - 有沒有辦法掃描字節碼,並確定是否實際上用戶名,密碼是硬編碼?
未來可能對他人有幫助。 (從How can I open Java .class files in a human-readable way?)
Usage: javap <options> <classes>...
where options include:
-c Disassemble the code
-classpath <pathlist> Specify where to find user class files
-extdirs <dirs> Override location of installed extensions
-help Print this usage message
-J<flag> Pass <flag> directly to the runtime system
-l Print line number and local variable tables
-public Show only public classes and members
-protected Show protected/public classes and members
-package Show package/protected/public classes
and members (default)
-private Show all classes and members
-s Print internal type signatures
-bootclasspath <pathlist> Override location of class files loaded
by the bootstrap class loader
-verbose Print stack size, number of locals and args for methods
If verifying, print reasons for failure
Erm ...此答案必須針對不知道如何點擊鏈接的人:http://download.oracle.com/javase/8/docs/technotes/tools/windows/javap.html – 2015-06-04 22:40:44
ha哈..我可以理解。根據我之前對oracle文檔的介紹,這些鏈接最終顯現出來。它很好,有適當的地方。 Offcourse,沒有人會拿出你的學分,並且已經看到了參考:)放輕鬆。 +1爲您的答案 – 2015-06-05 22:56:57
StackOverflow答案中的鏈接斷開得到修復。如果問答是值得的。 – 2015-06-05 23:01:52
這真是太棒了!謝謝 – JAM 2011-05-23 01:26:35
不客氣! – 2011-05-23 01:38:08
我的工作很好! – 2011-10-03 12:45:45