Skip to content

Instantly share code, notes, and snippets.

View jamiedevsandbox's full-sized avatar
💭
C and Linux is life

Jamie Sparks jamiedevsandbox

💭
C and Linux is life
View GitHub Profile
@meritozh
meritozh / endian.c
Created October 20, 2016 14:47
little endian and big endian
#include <netinet/in.h>
#include <stdio.h>
int main(int argc, const char *argv[]) {
int i = 1093173256;
int k = htonl(i);
printf("%d %d\n", i, k);
return 0;
}
@nicolasdao
nicolasdao / open_source_licenses.md
Last active May 10, 2026 10:51
What you need to know to choose an open source license.
@thefinn93
thefinn93 / iptables.rule
Last active March 12, 2022 00:32
Finn's Amazing iptables Thing
# /etc/iptables.rules remove this line
*filter
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i enp5s0 -j DROP
-A FORWARD -i enp5s0 -p udp -m udp --dport 34197 -m state --state NEW -j ACCEPT
COMMIT
@a-goodarzi
a-goodarzi / route-all-traffic-through-tor.md
Last active August 19, 2024 21:17
Route all internet traffic through Tor

Do not use in production Server or if you don't know what iptables do

Add this to torrc ( located on /etc/tor/torrc):

VirtualAddrNetwork 10.192.0.0/10

AutomapHostsOnResolve 1

TransPort 9051 
32bit register
r3 0x0A0B0C0D Little endian
| | 0x0D| | 0x0C| | 0x0B| | 0x0A| | |
| Store |0x400| |0x401| |0x402| |0x403| |0x404| memory add.
\/
memory 0x400 - 0x403 Big endian
| 0x0A| | 0x0B| | 0x0C| | 0x0D| | |
|0x400| |0x401| |0x402| |0x403| |0x404| memory add.
@scorpius
scorpius / Install TurboTax 2020 in Windown 7.md
Last active March 17, 2026 21:28
How to Install TurboTax Deluxe 2020 in Windows 7

How to Install TurboTax Deluxe 2020 in Windows 7

Run the TurboTax installer until the error dialog pops up. Click the close button since you can't go any further. Now press WinKey-R and type %TEMP% to go to the temporary folder. Copy the ckz_xxxx folder to the desktop. Select the setup.exe file and press CTRL-C then CTRL-V to make a copy.

Now use radare as follows:

Command Description
r2 -A -w "setup - copy.exe" analyze and allow writing
axt str.Detected_OS_is_WIN_8_or_above look for references to this string
@jamiedevsandbox
jamiedevsandbox / really-interesting-repos
Last active April 3, 2026 23:01
Curated list of impressive repositories
https://github.com/github/training-kit
https://github.com/AdguardTeam/AdGuardHome
https://github.com/TH3xACE/SUDO_KILLER
https://github.com/simbody/simbody
https://github.com/matthieu-hackwitharts/Win32_Offensive_Cheatsheet
@jamiedevsandbox
jamiedevsandbox / git-local-branching-cheatsheet
Last active June 19, 2021 01:38
Git Local Branching Documentation CheatSheet
http://git-scm.com/docs
https://github.com/git-tips/tips
https://github.com/sdras/awesome-actions
https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/duplicating-a-repository
https://stackoverflow.com/questions/22906917/how-to-move-git-repository-with-all-branches-from-bitbucket-to-github
@jamiedevsandbox
jamiedevsandbox / github-repo-licenses
Created May 2, 2021 19:31
Github - What you need to know to choose an open source license.
https://gist.github.com/nicolasdao/a7adda51f2f185e8d2700e1573d8a633
#https://twitter.com/officialmcafee/status/1397568860082122752
#https://twitter.com/ahakcil/status/1397888724936105987
import random
import copy
RST = '\033[0m'
def rand_data(size):
d = []