Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Instfiles page _click_ on "headers" PoC using the ButtonEvent plug-in
- Outfile "test.exe"
- RequestExecutionLevel user
- ShowInstDetails nevershow
- !addplugindir ".\" ;a neat trick so we don't have to "install" the plugin
- !include nsDialogs.nsh
- Page Instfiles "" InstPageShow
- !define IDC_THING1 6001
- !define IDC_THING2 6002
- Function ClickedThing
- ButtonEvent::WhichButtonId
- Pop $0
- IntOp $0 $0 - 6000
- DetailPrint "Thing$0!"
- FunctionEnd
- Function InstPageShow
- FindWindow $9 "#32770" "" $HWNDPARENT
- CreateFont $8 "Arial" 12 800
- GetFunctionAddress $7 ClickedThing
- System::Call 'USER32::CreateWindowEx(i ${__NSD_Label_EXSTYLE},t "Static",t "Thing1",i ${__NSD_Label_STYLE},i 10,i 100,i 70,i 20,i $9,i ${IDC_THING1},i,i)i.r0'
- SendMessage $0 ${WM_SETFONT} $8 1
- ButtonEvent::AddEventHandler ${IDC_THING1} $7
- System::Call 'USER32::CreateWindowEx(i ${__NSD_Label_EXSTYLE},t "Static",t "Thing2",i ${__NSD_Label_STYLE},i 110,i 100,i 70,i 20,i $9,i ${IDC_THING2},i,i)i.r0'
- SendMessage $0 ${WM_SETFONT} $8 1
- ButtonEvent::AddEventHandler ${IDC_THING2} $7
- FunctionEnd
- Section
- Nop
- SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement