This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#title :importnordvpn.sh | |
#description :This script will batch import ovpn files . | |
#author :dzaczek consolechars.wordpress.com | |
#date :20170227 | |
#version :0.4 | |
#usage :./bash mkscript.sh -u [username] -p [password] -d [directory with ovpn configs] || -g | |
#notes :Install NetworkManager.x86_64 NetworkManager-openvpn.x86_64 NetworkManager-openvpn-gnome.x86_64 awk | |
#notes : Script reqquired time, for add 1583 vpn config needed 3h 2m | |
#============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
URL=http://www.google.com; | |
while true; do | |
a=$(curl -L -w %{speed_download} -o/dev/null -s $URL); | |
d=$(date +%d/%m/%y%t%H:%M:%S) | |
echo $d";"$a>>bps.sh | |
sleep 10; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ulstrafast lan scanner | |
#https://consolechars.wordpress.com/2017/03/27/devtcp-forgotten-linux-delicacy/ | |
iph="192.168.8." | |
scan (){ | |
timeout 3 bash -c "echo >/dev/tcp/$iph$2/$1" 2>/dev/null && echo "$iph$2 $1" | |
} | |
echo "PORT HOST" | |
for ihost in {1..254}; do | |
for port in {22,80,8080,3389,443,53,67,68}; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yes "$(shuf -i 16-213 -n 99)" | while read i; do printf "\x1b[48;5;${i}m\n"; for i in `echo "QlpoOTFBWSZTWfPfgvUAAAADAAAQKgEgACGDQZoNKHF3JFOFCQ89+C9Q" | base64 -d | bunzip2 |sed 's/./& /g'` ; do echo -n $i ;sleep 0.05; done; echo -en ""; sleep 0.05; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PP="plot " | |
PP2="plot " | |
a="iodata.log" | |
n=1 | |
totaln=`cat $a | awk '{print $13}' | sort | uniq |wc -l` | |
cat $a | awk '{print $13}' | sort | uniq | while IFS= read -r line; do | |
lenline=${#line} | |
nom=$[$nom+1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crontab -e | |
* * * * * /usr/sbin/iotop -botqqqk --iter=60 | grep -P "\d\d\.\d\d K/s" >> /var/log/iodata.log | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
last -t 20170101010101 | awk '{print $1}' | sort | uniq -c | |
cat /etc/passwd | awk -F: '{if($7=="/bin/bash") print $1"\t"$5"\t"$6}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#for i in {1..3389}; do `nc -zn -w 1 127.0.0.1 $i | grep succeesed` ; done | |
cat << 'EOF' >> ~/.bash_profile ; | |
nmap_nc(){ | |
for i in 20,37,69,137,119,197,445,444,161,3020,2049,21,22,1194,3389,1701,80,8080,443,1293,500,4500,3389,1080,25,53,995,3128,546,547,110,109; do `nc -zn -w 1 $1 $i` ; done | |
} | |
export nmap_nc | |
EOF | |
source ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Certificate: | |
Data: | |
Version: 3 (0x2) | |
Serial Number: 458208 (0x6fde0) | |
Signature Algorithm: sha256WithRSAEncryption | |
Issuer: C = US, O = GeoTrust Inc., CN = RapidSSL SHA256 CA - G3 | |
Validity | |
Not Before: Sep 16 00:33:02 2015 GMT | |
Not After : Sep 18 04:03:45 2017 GMT | |
Subject: OU = GT58073302, OU = See www.rapidssl.com/resources/cps (c)15, OU = Domain Control Validated - RapidSSL(R), CN = search.dnsadvantage.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.---. .---. | |
| | | | | |
'---' . __ __ ___ .--.'---' | |
.---. .'| | |/ `.' `. |__|.---. | |
| | .' | | .-. .-. '.--.| | | |
| | __ < | | | | | | || || | __ | |
| | .:--.'. | | ____ | | | | | || || | .:--.'. | |
| |/ | \ | | | \ .' | | | | | || || |/ | \ | | |
| |`" __ | | | |/ . | | | | | || || |`" __ | | | |
| | .'.''| | | /\ \ |__| |__| |__||__|| | .'.''| | |
OlderNewer