Skip to content

Instantly share code, notes, and snippets.

View kugelblitzz's full-sized avatar
📜
Script Kiddie

Jonathan Wisidagama kugelblitzz

📜
Script Kiddie
  • WSO2
  • CMB
  • 14:50 (UTC +05:30)
View GitHub Profile
@kugelblitzz
kugelblitzz / cloudSettings
Last active September 28, 2021 19:45
My VS Code Settings
{"lastUpload":"2021-09-28T19:44:59.591Z","extensionVersion":"v3.4.3"}
cfgver "1"
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
#!/bin/bash
journalPath=$(/usr/bin/find /var/log/ -name system.journal | /bin/sed 's:[^/]*$::')
rmCommandParam=$journalPath*@*
count=$(/bin/ls -l $journalPath | /usr/bin/wc -l)
#echo $count
#Only runs if more than 2 files are there
@kugelblitzz
kugelblitzz / block_myjino.py
Created August 4, 2022 23:05
AWS ACL Rule Update Block for "Supply Chain Attack" - "myjino.com", "myjino.ru" (Lambda)
import json
import socket
import urllib3
import boto3
def lambda_handler(event, context):
ec2 = boto3.resource('ec2')
network_acl = ec2.NetworkAcl('<acl-id>')
#!/bin/bash
if [ "$#" -ne 3 ]; then
echo "usage: sh thread-analyze.sh <pid> <number-of-dumps> <interval>"
exit
fi
count=$2
for i in `seq 1 $count`;
do
/opt/java/bin/jstack -l $1 > thread_dump_`date "+%F-%T"`.txt &
@kugelblitzz
kugelblitzz / update.sh
Last active March 7, 2023 23:09 — forked from roommen/OpenSSH Update Script - Amazon Linux 2
OpenSSH Update Script - Amazon Linux 2
#!/bin/bash
#mkdir /etc/ssh_old
#mv /etc/ssh/* /etc/ssh_old/
sudo yum install gcc -y
sudo yum install openssl-devel -y
sudo yum install zlib-devel -y
sudo yum install mlocate -y
sudo yum install autoconf -y
sudo yum install pam-devel -y
sudo yum install libselinux-devel -y
@kugelblitzz
kugelblitzz / sshd_config
Last active March 8, 2023 21:41 — forked from TheGU/upgrade_openssh_openssl.sh
Upgrade openssl and openssh to version 9.1 on Amazon Linux 2
# $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# 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
@kugelblitzz
kugelblitzz / base.yaml
Created June 15, 2023 13:45
MyEspansoConfig
# espanso match file
# For a complete introduction, visit the official docs at: https://espanso.org/docs/
# You can use this file to define the base matches (aka snippets)
# that will be available in every application when using espanso.
# Matches are substitution rules: when you type the "trigger" string
# it gets replaced by the "replace" string.
matches: