Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#if _WIN32_WINNT < 0x0500 | |
# error "should be NT" | |
#endif | |
#include <windows.h> | |
#include <tlhelp32.h> | |
#include <winternl.h> | |
#include <stdio.h> | |
DWORD getppid() | |
{ |
public class NetFwMgr : DynamicComBase | |
{ | |
/// <summary> | |
/// Default constructor. | |
/// </summary> | |
public NetFwMgr() | |
{ | |
// Initialize the COM object. | |
Type fwMgrType = Type.GetTypeFromProgID("HNetCfg.FwMgr"); | |
base.comObj = Activator.CreateInstance(fwMgrType); |
/* compile with: | |
on linux: gcc -g stack_traces.c | |
on OS X: gcc -g -fno-pie stack_traces.c | |
on windows: gcc -g stack_traces.c -limagehlp | |
*/ | |
#include <signal.h> | |
#include <stdio.h> | |
#include <assert.h> |
@echo off | |
if "%1" == "" goto x86 | |
if not "%2" == "" goto usage | |
@set IE_BIN=%ProgramFiles%\Internet Explorer\iexplore.exe | |
@set PHANTOMJS_BIN=%APPDATA%\npm\node_modules\phantomjs\lib\phantom\phantomjs.exe | |
@doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $* | |
if /i %1 == x86 goto x86 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
from idaapi import * | |
GEN_REG = 0x1 | |
MEM_REF = 0x2 | |
BASE_INDEX = 0x3 | |
BASE_INDEX_DISP = 0x4 | |
IMMED = 0x5 | |
def doone(ea): | |
xrefs = [] |
It's over 9 years old (as of 2024-02-18), there are many better guides! You might like https://rust-unofficial.github.io/too-many-lists/
% Let's build a binary tree!
Let's build a binary tree of strings in Rust. To recap, each node in a binary tree:
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Test | |
{ | |
class Program | |
{ |
#include <windows.h> | |
#include <subauth.h> | |
#include <stdio.h> | |
/* Windows structures */ | |
typedef struct _PEB_LDR_DATA { | |
BYTE Reserved1[8]; | |
PVOID Reserved2[3]; | |
LIST_ENTRY InMemoryOrderModuleList; | |
} PEB_LDR_DATA, *PPEB_LDR_DATA; |