#include "stdafx.h"
#ifdef _MSC_VER
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h>
#endif
const char *runbat =
"\
@echo off&setlocal enabledelayedexpansion\n\
\n\
rem /* create temp files */\n\
type nul > symbol_result.txt\n\
\n\
type symbol.txt | find \"WATCHME\" >symbol_temp1.txt\n\
type symbol_temp1.txt | find /v \".text\" >symbol_temp2.txt\n\
type symbol_temp2.txt | find /v \".var_output_callback\" >symbol_temp3.txt\n\
type symbol_temp3.txt | find /v \"00000000 WATCHME_\" >symbol_temp4.txt\n\
\n\
for /f \"delims=\" %%a in (symbol_temp4.txt) do (\n\
set \"line=%%a\"\n\
\n\
set \"line=!line: l d = !\"\n\
set \"line=!line: l O = !\"\n\
set \"line=!line: g O = !\"\n\
set \"line=!line: = !\"\n\
set \"line=!line:WATCHME_=!\"\n\
\n\
echo !line! >> symbol_result.txt\n\
)\n\
\n\
del symbol_temp1.txt\n\
del symbol_temp2.txt\n\
del symbol_temp3.txt\n\
del symbol_temp4.txt\n\
\n\
exit /b\n\
";
脚本语言学习
最新推荐文章于 2024-08-08 13:00:06 发布