Skip to content

Instantly share code, notes, and snippets.

// argN = [ebp+0x8 + 0x4*(N-1)]
function(
arg1 // [ebp+0x8]
arg2 // [ebp+0xc]
arg3 // [ebp+0x10]
)
/* ------------------------------------------------------------------ */
func(arg1, arg2, arg3); // push arg3
// push arg2
// push arg1
// call func
/* ------------------------------------------------------------------ */
return val; // mov eax, val
// leave
// ret
/* ------------------------------------------------------------------ */
if (a == b) // mov eax, DWORD PTR [ebp-0xc]
/* if stuff */ // cmp eax, DWORD PTR [ebp-0x10]
else // jne addr
/* else stuff */ // /* if stuff */
// ...
// <addr>:
// /* else stuff */
/* ------------------------------------------------------------------ */
for (int i=0; i<=15; i++) // mov DWORD PTR [ebp-0xc], 0x0
/* do stuff */ // jmp addr2
// <addr1>:
// /* do stuff */
// ...
// add DWORD PTR [ebp-0xc], 0x1
// <addr2>:
// mov ecx, DWORD PTR [ebp-0xc]
// arr[N] = [addr + sizeof(type)*N]
char arr[10]; // mov eax, DWORD PTR [ebp-0xc]
if (arr[4] == 'c') // add eax, 0x4
// movzx eax, BYTE PTR [eax]
// movsx eax, al
// cmp eax, 0x63
/* ------------------------------------------------------------------ */
int a = 0; // mov DWORD PTR [ebp-0xc], 0x0
a++; // mov eax, DWORD PTR [ebp-0xc]
// inc eax
// mov DWORD PTR [ebp-0xc], eax
/* ------------------------------------------------------------------ */
int myfunction( int arg1, // [ebp+0x8]
char * arg2 // [ebp+0xc]
){
int a = 0; // mov DWORD PTR [ebp-0xc], 0x0
int len = strlen(arg2); // push DWORD PTR [ebp+0xc]
// call <strlen>
// mov DWORD PTR [ebp-0x14], eax ; saving the value returned from strlen()
for(int i=0; i<=len; i++) { // mov DWORD PTR[ebp-0x10], 0x0
@robindimyan
robindimyan / tweet_dumper.py
Created December 16, 2017 00:12 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""

Keybase proof

I hereby claim:

  • I am robindimyan on github.
  • I am 1ce7ea (https://keybase.io/1ce7ea) on keybase.
  • I have a public key ASBqo3K6f9mxDeUolluRcoTJzsmyP4FDIQ1pqdHq54Xx1Qo

To claim this, I am signing this object: