Skip to content

Instantly share code, notes, and snippets.

@tofarley
tofarley / ghidra.sh
Last active January 25, 2020 20:29
ghidra install CentOS 8.1
#!/usr/bin/env bash
# the list of users we want to create
GHIDRA_DEFAULT_USERS="red,tim,jack"
# find our public IP for ghidra
# if this is not a public-facing deployment, place the static ip here.
HOST_IP=$(curl -s http://whatismyip.akamai.com/)
# install our prereqs
given the file:
```
this is a test
it is only a test
if this were an actual emergency
1
2
3
4
5
Character Traits
Absentminded – Preoccupied to the extent of being unaware of one’s immediate surroundings. Abstracted, daydreaming, inattentive, oblivious, forgetful.
Abusive – Characterized by improper infliction of physical or psychological maltreatment towards another.
Alcoholic – A person who drinks alcoholic substances habitually and to excess or who suffers from alcoholism.
Addict – One who is addicted, as to narcotics or a compulsive activity. (Gambling, drugs, sex, etc. List specific addiction.)
Aimless – Devoid of direction or purpose.
Anxious – Full of mental distress or uneasiness because of fear of danger or misfortune; greatly worried; solicitous.
Apathetic – Having or showing little or no emotion; indifferent, impassive, cool, unfeeling.
Arrogant – Having or displaying a sense of overbearing self -worth or self -importance. Inclined to social exclusiveness and who rebuff the advances of people considered inferior. Snobbish.
Audacious – Recklessly bold in defiance of convention, propriety, law,
Sneezes when in proximity to higher clones.
OBSESSED with collecting zippers and buttons. Even if they are still attatched.
Feels compelled to abuse anyone in Blue
Thinks they're really a tigerLyke.
Likes to wear unusual things as hats.
Is unable to speak a GM chosen letter. Moans in annoyance any time someone else speaks it.
Right hand fights with left hand.
Likes to breakdance to the sound of weapon fire.
Pretends they are a cop show announcer when they can see goons.
Disassembles anything nearby unless concentrating on not doing so.
#!/usr/bin/env bash
curl_result=$(curl -Ns https://curlpipebash.teaser.insomnihack.ch/print-flag.sh 2> /dev/null)
# curl_result = curl `curl -Ns blah | bash`
#if [[ $curl_result != curl* ]] ; then echo "breaking!" ; break; fi
url=$(echo $curl_result |cut -f3 -d' ' | tr -d '|')
#curl_result=$(curl -N $url 2> /dev/null)
echo "base url: $url"
while read -r line
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 9687/nginx: master
tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN 417/python2
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 567/sshd
tcp 0 0.0.0.0:80 0.0.0.0:* LISTEN 564/haproxy
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN 6433/mjpg_streamer
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 612/node /home/pi/.
tcp 0 0.0.0.0:80 0.0.0.0:* LISTEN 564/haproxy
global
maxconn 4096
user haproxy
group haproxy
log 127.0.0.1 local1 debug
defaults
log global
mode http
option httplog
global
ca-base /etc/ssl/certs
log 127.0.0.1 local0
daemon
maxconn 256
defaults
mode http
timeout connect 5000ms
@tofarley
tofarley / example.scad
Last active August 20, 2018 17:54
Example openscad
// Ensure objects have a sufficient number of faces.
$fn = 30;
// Draw a flat panel 100mm * 100mm * 3mm and then remove 3mm holes for screws.
panel_size = 100;
screw_size = 3;
screw_distance_from_edge = 10;
Acquire
https://www.thingiverse.com/thing:2980283
http://www.thingiverse.com/thing:77343
Agricola
https://www.thingiverse.com/thing:2437845
http://www.thingiverse.com/thing:643316
http://www.thingiverse.com/thing:32284
http://www.thingiverse.com/thing:134407
http://www.thingiverse.com/thing:30592
http://www.thingiverse.com/thing:334947