Skip to content

Instantly share code, notes, and snippets.

View RandyMcMillan's full-sized avatar
🛰️
Those who know - do not speak of it.

@RandyMcMillan RandyMcMillan

🛰️
Those who know - do not speak of it.
View GitHub Profile
@RandyMcMillan
RandyMcMillan / app.js
Created February 3, 2023 21:27 — forked from MattSandy/app.js
Tweet Scraper in Node.JS
var Twitter = require('node-tweet-stream')
, t = new Twitter({
consumer_key: '',
consumer_secret: '',
token: '',
token_secret: ''
});
var watch = [
"SB52",
"SBLII",
@RandyMcMillan
RandyMcMillan / .gitignore
Last active February 28, 2023 01:07 — forked from JamesCooteUK/html-smuggling-example.html
HTML Smuggling Example
.DS_Store
evil.exe
test.txt
@RandyMcMillan
RandyMcMillan / execv-example.c
Created May 18, 2023 15:24 — forked from fxdpntthm/execv-example.c
small sample program to demonstrate execv function usage
#include<stdio.h>
#include<errno.h>
#include<stdlib.h>
#include<strings.h>
#include<unistd.h>
#define BASH_EXEC "/usr/bin/bash"
#define LS_EXEC "/usr/bin/ls"
#define BSIZE 50
@RandyMcMillan
RandyMcMillan / .gitignore
Last active May 19, 2023 20:36 — forked from fxdpntthm/execl-example.c
Small sample program explaining how to use execl command
pyinbash.sh
py3-script.py
pyscript.py
scripts
scripts/*
execl-example
execl-example.dSYM/
@RandyMcMillan
RandyMcMillan / screen-sharing-osx.sh
Created July 13, 2023 12:44 — forked from pcolunga/screen-sharing-osx.sh
Enable screen-sharing on Mac OS X via SSH
#Log and type
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all
# To enable screen sharing
cd /Library/Preferences
echo -n enabled > com.apple.ScreenSharing.launchd
# To disable screen sharing
cd /Library/Preferences
rm com.apple.ScreenSharing.launchd
@RandyMcMillan
RandyMcMillan / key_converter.py
Last active December 1, 2023 00:11 — forked from jleo84/key_converter.py
Convert any Bitcoin key prefix to another (e.g.: xpub to ypub, zpriv to Zpriv)
#!/usr/bin/python3
import pip
while True:
try:
#import your modules here. !
from distutils.spawn import find_executable
from shutil import which
@RandyMcMillan
RandyMcMillan / makefile
Created December 4, 2023 19:09 — forked from tomdaley92/makefile
Generic makefile for C/C++ programs
# Thomas Daley
# September 13, 2021
# A generic build template for C/C++ programs
# executable name
EXE = app
# C compiler
CC = gcc
@RandyMcMillan
RandyMcMillan / main.rs
Created January 30, 2024 03:28 — forked from rot13maxi/main.rs
adaptor fun
use rand_chacha::ChaCha20Rng;
use schnorr_fun::fun::{KeyPair, Scalar};
use schnorr_fun::{Message, nonce, Schnorr};
use schnorr_fun::adaptor::Adaptor;
use schnorr_fun::fun::marker::Public;
use schnorr_fun::musig::MuSig;
use sha2::Sha256;
fn main() {
// Little proof of concept. Doesn't actually do real transactions, but you get the idea.
@RandyMcMillan
RandyMcMillan / playground.rs
Created July 20, 2024 16:10 — forked from rust-play/playground.rs
Code shared from the Rust Playground
fn random() {
let num1 = vec![2, 3];
let num2 = vec![2, 3];
let address1 = &num1 as *const Vec<i32>;
let address2 = &num2 as *const Vec<i32>;
let number1 = address1 as i32;
let number2 = address2 as i32;
println!("{}", number1 % 13);
println!("{}", number2 % 13);
}
@RandyMcMillan
RandyMcMillan / playground.rs
Created July 20, 2024 16:52 — forked from rust-play/playground.rs
Code shared from the Rust Playground
fn random() {
let num1 = vec![2, 3];
let num2 = vec![2, 3];
let address1 = &num1 as *const Vec<i32>;
let address2 = &num2 as *const Vec<i32>;
let number1 = address1 as i32;
let number2 = address2 as i32;
let modulus: i32 = 13;
// println!("{}", number1);