ref: 參考
dex2jar: dex2jar
JD-GUI: JD-GUI
1.解壓縮 apk
2. dex2jar 將 dex 轉 jar
3. JD-GUI 看 jar
Lai99 的實驗筆記
聰明有界但腦殘無窮
2015/08/17
2013/08/13
[ Excel ] 解除活頁簿保護巨集
Sub PasswordBreaker() 'Breaks worksheet password protection. Dim i As Integer, j As Integer, k As Integer Dim l As Integer, m As Integer, n As Integer Dim i1 As Integer, i2 As Integer, i3 As Integer Dim i4 As Integer, i5 As Integer, i6 As Integer On Error Resume Next For i = 65 To 66: For j = 65 To 66: For k = 65 To 66 For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66 For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66 For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126 ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _ Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _ Chr(i4) & Chr(i5) & Chr(i6) & Chr(n) If ActiveSheet.ProtectContents = False Then MsgBox "One usable password is " & Chr(i) & Chr(j) & _ Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _ Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n) Exit Sub End If Next: Next: Next: Next: Next: Next Next: Next: Next: Next: Next: Next End Sub
2013/02/19
[紙模型] 星海爭霸II紙模型試作 掠奪者
2012/12/05
WinAPI備忘
'''''''''''''''''''''' '注意Long / Integer型別的差別 '''''''''''''''''''''' 'FindWindow(要搜尋視窗的Class name, 要搜尋視窗的標題) 任一有即可搜尋 Public Declare Auto Function FindWindow Lib "user32.dll" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer 'FindWindowEx(要搜尋視窗的Parent class name,由這個IntPtr之後的子視窗開始搜尋要從頭開始設IntPtr.zero, 要搜尋視窗的Class name, 要搜尋視窗的標題) Public Declare Auto Function FindWindowEx Lib "user32.dll" (ByVal hWnd1 As Integer, ByVal hWnd2 As Integer, ByVal lpsz1 As String, ByVal lpsz2 As String) As Integer 'SetForegroundWindow(要設為最前的視窗IntPtr) Public Declare Auto Function SetForegroundWindow Lib "user32.dll" (ByVal hwnd As Integer) As Integer 'PostMessage(要傳送的視窗IntPtr, 設定傳送的動作方式, 要傳送的按鍵 or button ID, Null or button intptr) Public Declare Auto Function PostMessage Lib "user32.dll" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer '類似PosetMessage但會等Stack執行到才Return Public Declare Auto Function SendMessage Lib "user32.dll" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer 'GetWindowText(要獲得內容的視窗IntPtr, 儲存內容的字串, 長度) Public Declare Auto Function GetWindowText Lib "user32.dll" (ByVal hwnd As Integer, ByVal lpString As String, ByVal cch As Integer) As Integer 'GetClassName(要獲得Class name的視窗IntPtr, 儲存class name的字串, 長度) Public Declare Auto Function GetClassName Lib "user32.dll" (ByVal hwnd As Integer, ByVal lpClassName As String, ByVal nMaxCount As Integer) As Integer Public Declare Auto Function SetWindowText Lib "user32.dll" (ByVal hwnd As IntPtr, ByVal lpString As String) As Boolean '傳送string,lparam宣告為string,注意函式為vb.net的宣告_ Public Function SendMessageString(ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Integer End Function Public Declare Auto Function EnumChildWindows Lib "user32.dll" (ByVal hWndParent As Integer, ByVal lpEnumFunc As Integer, ByVal lParam As Integer) As Integer Public Const WM_KEYDOWN As Integer = &H100 Public Const WM_KEYUP As Integer = &H101 Public Const WM_COMMAND As Integer = &H111 Public Const WM_SETTEXT As Integer = &HC Public Const WM_GETTEXT As Integer = &HD Public Const VK_ENTER As Integer = &HD Public Const WM_RMOUSE As Integer = &H2 Public Const VK_SPACE As Integer = &H20 Public Const CB_FINDSTRING As Integer = &H14C Public Const CB_SETCURSEL As Integer = &H14E Public Const CB_SELECTSTRING As Integer = &H14 'GetWindowThreadProcessId(要獲得process id的視窗IntPtr, 儲存process id的integer) Public Declare Function GetWindowThreadProcessId Lib "user32.dll" (ByVal hwnd As Integer, ByRef lpdwProcessId As Integer) As Integer 'GetDlgCtrlID(傳Intptr取得button的ID) Public Declare Function GetDlgCtrlID Lib "user32.dll" (ByVal hwnd As Integer) As Integer 'http://msdn.microsoft.com/zh-tw/library/windows/desktop/ms684320%28v=vs.85%29.aspx '使用後要用CloseHandle(handle)來結束 Public Declare Function OpenProcess Lib "kernel32.dll" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer Public Declare Function CloseHandle Lib "kernel32.dll" (ByVal hObject As Integer) As Integer '''''''''''''''''''''''''''' '注意VB6預設為傳值,VB.NET為傳址,注意宣告的ByVal / ByRef '''''''''''''''''''''''''''' 'http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545%28v=vs.85%29.aspx Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer 'GetCursorPos(滑鼠x,y位置,要宣告包含x,y的structure) Public Declare Function GetCursorPos Lib "user32" (ByRef lpPoint As POINTAPI) As Integer 'WindowFromPoint(滑鼠x軸,滑鼠y軸) 獲得在這滑鼠座標下最上層的視窗Intptr Public Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Integer, ByVal yPoint As Integer) As Integer Public Structure POINTAPI Dim x As Integer Dim y As Integer End Structure
2012/12/04
Virtual-Key Codes (Windows)
| Left mouse button |
| Right mouse button |
| Control-break processing |
| Middle mouse button (three-button mouse) |
| X1 mouse button |
| X2 mouse button |
| Undefined |
| BACKSPACE key |
| TAB key |
| Reserved |
| CLEAR key |
| ENTER key |
| Undefined |
| SHIFT key |
| CTRL key |
| ALT key |
| PAUSE key |
| CAPS LOCK key |
| IME Kana mode |
| IME Hanguel mode (maintained for compatibility; use VK_HANGUL) |
| IME Hangul mode |
| Undefined |
| IME Junja mode |
| IME final mode |
| IME Hanja mode |
| IME Kanji mode |
| Undefined |
| ESC key |
| IME convert |
| IME nonconvert |
| IME accept |
| IME mode change request |
| SPACEBAR |
| PAGE UP key |
| PAGE DOWN key |
| END key |
| HOME key |
| LEFT ARROW key |
| UP ARROW key |
| RIGHT ARROW key |
| DOWN ARROW key |
| SELECT key |
| PRINT key |
| EXECUTE key |
| PRINT SCREEN key |
| INS key |
| DEL key |
| HELP key |
| 0 key |
| 1 key |
| 2 key |
| 3 key |
| 4 key |
| 5 key |
| 6 key |
| 7 key |
| 8 key |
| 9 key |
| Undefined |
| A key |
| B key |
| C key |
| D key |
| E key |
| F key |
| G key |
| H key |
| I key |
| J key |
| K key |
| L key |
| M key |
| N key |
| O key |
| P key |
| Q key |
| R key |
| S key |
| T key |
| U key |
| V key |
| W key |
| X key |
| Y key |
| Z key |
| Left Windows key (Natural keyboard) |
| Right Windows key (Natural keyboard) |
| Applications key (Natural keyboard) |
| Reserved |
| Computer Sleep key |
| Numeric keypad 0 key |
| Numeric keypad 1 key |
| Numeric keypad 2 key |
| Numeric keypad 3 key |
| Numeric keypad 4 key |
| Numeric keypad 5 key |
| Numeric keypad 6 key |
| Numeric keypad 7 key |
| Numeric keypad 8 key |
| Numeric keypad 9 key |
| Multiply key |
| Add key |
| Separator key |
| Subtract key |
| Decimal key |
| Divide key |
| F1 key |
| F2 key |
| F3 key |
| F4 key |
| F5 key |
| F6 key |
| F7 key |
| F8 key |
| F9 key |
| F10 key |
| F11 key |
| F12 key |
| F13 key |
| F14 key |
| F15 key |
| F16 key |
| F17 key |
| F18 key |
| F19 key |
| F20 key |
| F21 key |
| F22 key |
| F23 key |
| F24 key |
| Unassigned |
| NUM LOCK key |
| SCROLL LOCK key |
| OEM specific |
| Unassigned |
| Left SHIFT key |
| Right SHIFT key |
| Left CONTROL key |
| Right CONTROL key |
| Left MENU key |
| Right MENU key |
| Browser Back key |
| Browser Forward key |
| Browser Refresh key |
| Browser Stop key |
| Browser Search key |
| Browser Favorites key |
| Browser Start and Home key |
| Volume Mute key |
| Volume Down key |
| Volume Up key |
| Next Track key |
| Previous Track key |
| Stop Media key |
| Play/Pause Media key |
| Start Mail key |
| Select Media key |
| Start Application 1 key |
| Start Application 2 key |
| Reserved |
| Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ';:' key |
| For any country/region, the '+' key |
| For any country/region, the ',' key |
| For any country/region, the '-' key |
| For any country/region, the '.' key |
| Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '/?' key |
| Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '`~' key |
| Reserved |
| Unassigned |
| Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the '[{' key |
| Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the '\|' key |
| Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the ']}' key |
| Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the 'single-quote/double-quote' key |
| Used for miscellaneous characters; it can vary by keyboard. |
| Reserved |
| OEM specific |
| Either the angle bracket key or the backslash key on the RT 102-key keyboard |
| OEM specific |
| IME PROCESS key |
| OEM specific |
| Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP |
| Unassigned |
| OEM specific |
| Attn key |
| CrSel key |
| ExSel key |
| Erase EOF key |
| Play key |
| Zoom key |
| Reserved |
| PA1 key |
| Clear key |
訂閱:
文章 (Atom)