Skip to content

Instantly share code, notes, and snippets.

int add_func(int a, int b) {
int c = a + b;
return c;
}
// main
int main(int argc, char *argv[]) {
int d = add_func(1, 2);
using System;
using System.Windows.Forms;
namespace ManagedDll{
public class Test{
public static int func(String pwzArgument){
MessageBox.Show(pwzArgument, "Caption");
return 0;
}
}
#include<metahost.h>
#include<stdio.h>
#include<Windows.h>
#pragma comment(lib, "mscoree.lib")
void clr(){
HRESULT hr;
DWORD dRet = 0;
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Sample">
<hoge />
</Target>
<UsingTask
TaskName="hoge"
TaskFactory="CodeTaskFactory"
AssemblyFile="C:\Windows\Microsoft.Net\Framework\v4.0.30319\Microsoft.Build.Tasks.v4.0.dll" >
<Task>
<Code Type="Class" Language="cs">
import idaapi
class Test(idaapi.plugin_t):
flags = idaapi.PLUGIN_PROC
comment = "My Test IDA Plugin"
help = "Test Plugin help"
wanted_name = "My_Test_Plugin"
wanted_hotkey = ""
#include<Windows.h>
#include<iphlpapi.h>
#include<stdio.h>
#pragma comment(lib,"IPHLPAPI.lib")
char DomainName[0x84];
char HostName[0x84];
char BufStr[304];
from idaapi import *
from idautils import *
from idc import *
b_addr = 0x003021AA
LoadDebugger("windbg", 1)
add_bpt(b_addr,0,BPT_SOFT)
from idaapi import *
from idautils import *
from idc import *
ea = BeginEA()
for func in Functions(SegStart(ea),SegEnd(ea)):
func_name = GetFunctionName(func)
if func_name.find("sub_") != -1:
from idaapi import *
from idautils import *
from idc import *
func = ["sub_12A1E00"]
for x in func:
addr = LocByName(x)
pseudo_code = decompile(addr)
typedef struct _PEB {
BYTE Reserved1[2];
BYTE BeingDebugged;
BYTE Reserved2[1];
PVOID Reserved3[2];
PPEB_LDR_DATA Ldr;
PRTL_USER_PROCESS_PARAMETERS ProcessParameters;
PVOID Reserved4[3];
PVOID AtlThunkSListPtr;
PVOID Reserved5;