Skip to content

Instantly share code, notes, and snippets.

@rcx
rcx / ipd-3.py
Last active January 29, 2020 02:54
Socket server that returns your IP address -- try it online at http://tcpb.in:9999
#!/usr/bin/env python3
from socket import *
s = socket(AF_INET, SOCK_STREAM)
s.bind(('', 9999))
s.listen(1)
while True:
try:
c,a = s.accept()
print(a)
c.send((str(a[0]) + '\n').encode('utf-8'))
@rcx
rcx / preamble.h
Last active April 25, 2020 03:25
Preprocess library include headers for loading in IDA
// #define __attribute__(X)
// #define __asm__(X)
// #define __extension__
// #define __inline
#define __signed__ signed
#undef __GNUC__
#undef __GNUC_MINOR__
// #pragma pack(push, 1)
@rcx
rcx / rtorrent
Created September 23, 2020 04:46 — forked from Grogdor/rtorrent
rtorrent FreeBSD startup rc.d service script tmux user
#!/bin/sh
#
# $FreeBSD$
#
# Runs as unprivileged user "rtorrent"
# Lives in "tmux" (like "screen") because rtorrent can't daemonize itself
# To access rtorrent client that's in the tmux: su - rtorrent && tmux attach
# To detach the tmux and leave rtorrent running: Ctrl-B then D
# nice'd default +10 step to make it go easy on the machine
# Don't forget to put rtorrent_enable="YES" in your /etc/rc.conf
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
@rcx
rcx / delete-all-messages.js
Last active November 9, 2023 19:12 — forked from niahoo/delete-all-messages.js
Delete all your messages in a Discord channel
/*
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
*/
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) {
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") {
alert("Oops! You forgot to set the guild_id. Please fill it in.")
return;
}
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") {