Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/shellcode/windows/templates/win32_template.asm
Views: 11784
%include "pe.inc"12BIN_Begin3MZHeader4MZExtendedHeader5MZSection.text_Begin6push cs7pop ds8mov dx,MZSection.text_VA(text_string)9mov ah,0910int 21h11mov ax,4C01h12int 21h13text_string: db 'This program cannot be run in DOS mode.',0Dh,0Ah,'$'14MZSection.text_End1516PEHeader17%define PEOptionalheader_EipRVA PESection.text_RVA(PayloadEntry)18PEOptionalHeader_Begin19PEOptionalHeader_Directory Export,0,020PEOptionalHeader_Directory Import,Import_Directorys_RVA,Import_Directorys_VS21PEOptionalHeader_End2223PESectionHeader .text,'.text',PESectionHeader_Flags_EXECUTABLECODE | PESectionHeader_Flags_DATAFROMFILE | PESectionHeader_Flags_EXECUTEACCESS | PESectionHeader_Flags_READACCESS| PESectionHeader_Flags_WRITEACCESS24PESectionHeader .rdata,'.rdata',PESectionHeader_Flags_DATAFROMFILE | PESectionHeader_Flags_READACCESS25PESectionHeader .data,'.data',PESectionHeader_Flags_DATAFROMFILE | PESectionHeader_Flags_READACCESS | PESectionHeader_Flags_WRITEACCESS26PESectionHeader .bss,'.bss', PESectionHeader_Flags_DATA0 | PESectionHeader_Flags_READACCESS | PESectionHeader_Flags_WRITEACCESS27PESectionHeader .idata,'.idata',PESectionHeader_Flags_DATAFROMFILE | PESectionHeader_Flags_READACCESS28PESections_Begin2930PESection.text_Begin31PayloadEntry:32incbin "payload.bin"33call [PESection.idata_VA(Import.KERNEL32.ExitProcess)]34PESection.text_End3536PESection.rdata_Begin37db 0x9038PESection.rdata_End3940PESection.data_Begin41db 0x9042PESection.data_End4344PESection.bss_Begin45resb 0x10046PESection.bss_End4748PESection.idata_Begin4950Import_Directorys_Begin .idata51Import_Directory KERNEL3252Import_Directorys_End5354Import_RVAs_Begin KERNEL3255Import_RVA KERNEL32,ExitProcess56Import_RVAs_End5758Import_VAs_Begin KERNEL3259Import_VA KERNEL32,ExitProcess,0BFF8D4CAh60Import_VAs_End6162Import_Strings_Begin KERNEL3263Import_String_Function KERNEL32,ExitProcess,"ExitProcess",07Fh64Import_String_Dll KERNEL32,"KERNEL32.DLL"65Import_Strings_End6667PESection.idata_End6869PESections_End70BIN_End717273