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:57 (UTC +05:30)
View GitHub Profile
@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 / 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
#!/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 &