mirror of
git://git.acid.vegas/random.git
synced 2024-12-12 09:16:40 +00:00
FUCK
This commit is contained in:
parent
e2fcae32d8
commit
4846592fee
2
2fa.py
2
2fa.py
@ -10,7 +10,7 @@ Requirements:
|
||||
import io, sys, time
|
||||
|
||||
try:
|
||||
import pyotp, qrcode
|
||||
import pyotp
|
||||
except ImportError:
|
||||
raise SystemExit('missing required \'pyotp\' module! (https://pypi.org/project/pyotp/)')
|
||||
try:
|
||||
|
@ -11,26 +11,25 @@ setup_motd() {
|
||||
RED='\033[1;31m'
|
||||
BLUE='\033[1;34m'
|
||||
UBLUE='\033[4;34m'
|
||||
echo -e "╔═══════════════════════╦══════════════════════════════════════════════════════════════╗
|
||||
║${GREEN} ▄▄▄· ▄▄· ▪ ·▄▄▄▄ ${RESET}║ ${RED}Connection Notice${RESET} ║
|
||||
║${GREEN} ▐█ ▀█ ▐█ ▌▪██ ██▪ ██ ${RESET}╟──────────────────────────────────────────────────────────────╢
|
||||
║${GREEN} ▄█▀▀█ ██ ▄▄▐█·▐█· ▐█▌ ${RESET}║ ║
|
||||
║${GREEN} ▐█ ▪▐▌▐███▌▐█▌██. ██ ${RESET}║ ${YELLOW}This system is for the use of authorized users only.${RESET} ║
|
||||
║${GREEN} ▀ ▀ ·▀▀▀ ▀▀▀▀▀▀▀▀• ${RESET}║ ${YELLOW}All connections will be monitored and logged by the system.${RESET} ║
|
||||
║${GREEN} ▄▄▄▄· ▐▄• ▄ ${RESET}║ ║
|
||||
║${GREEN} ▐█ ▀█▪▪ █▌█▌▪ ${RESET}║ ${YELLOW}Connection issues? Contact ${UBLUE}${BLUE}acid.vegas@acid.vegas${YELLOW} for help.${RESET} ║
|
||||
║${GREEN} ▐█▀▀█▄ ▄█▀▄ ·██· ${RESET}║ ║
|
||||
║${GREEN} ██▄▪▐█▐█▌.▐▌▪▐█·█▌ ${RESET}║ ${YELLOW}Right about now, the funk soul brudda. Check it out now...${RESET} ║
|
||||
║${GREEN} ·▀▀▀▀ ▀█▄▀▪•▀▀ ▀▀ ${RESET}║ ║
|
||||
╚═══════════════════════╩══════════════════════════════════════════════════════════════╝" > /etc/issue
|
||||
echo "${YELLOW}Hello ${CYAN}$(whoami)${YELLOW}! You are now connected to ${RED}$(hostname)
|
||||
${YELLOW}Type ${BGREEN}cmds${YELLOW} to see a list of commands available.${RESET}
|
||||
|
||||
[${BLUE}RULES${RESET}]
|
||||
${GREY}*${YELLOW} This is a private system that you are not to give out access to anyone
|
||||
without permission from the system admin. No illegal files or activites.
|
||||
${GREY}*${YELLOW} Avoid denial of service attacks out of respect for other users on the system.
|
||||
${GREY}*${YELLOW} Stay in your home directory, keep the system clean, and make regular backups." > /etc/motd
|
||||
echo -e "╔═══════════════════════╦══════════════════════════════════════════════════════════════╗"
|
||||
echo -e "║${GREEN} ▄▄▄· ▄▄· ▪ ·▄▄▄▄ ${RESET}║ ${RED}Connection Notice${RESET} ║"
|
||||
echo -e "║${GREEN} ▐█ ▀█ ▐█ ▌▪██ ██▪ ██ ${RESET}╟──────────────────────────────────────────────────────────────╢"
|
||||
echo -e "║${GREEN} ▄█▀▀█ ██ ▄▄▐█·▐█· ▐█▌ ${RESET}║ ║"
|
||||
echo -e "║${GREEN} ▐█ ▪▐▌▐███▌▐█▌██. ██ ${RESET}║ ${YELLOW}This system is for the use of authorized users only.${RESET} ║"
|
||||
echo -e "║${GREEN} ▀ ▀ ·▀▀▀ ▀▀▀▀▀▀▀▀• ${RESET}║ ${YELLOW}All connections will be monitored and logged by the system.${RESET} ║"
|
||||
echo -e "║${GREEN} ▄▄▄▄· ▐▄• ▄ ${RESET}║ ║"
|
||||
echo -e "║${GREEN} ▐█ ▀█▪▪ █▌█▌▪ ${RESET}║ ${YELLOW}Connection issues? Contact ${UBLUE}${BLUE}acid.vegas@acid.vegas${YELLOW} for help.${RESET} ║"
|
||||
echo -e "║${GREEN} ▐█▀▀█▄ ▄█▀▄ ·██· ${RESET}║ ║"
|
||||
echo -e "║${GREEN} ██▄▪▐█▐█▌.▐▌▪▐█·█▌ ${RESET}║ ${YELLOW}Right about now, the funk soul brudda. Check it out now...${RESET} ║"
|
||||
echo -e "║${GREEN} ·▀▀▀▀ ▀█▄▀▪•▀▀ ▀▀ ${RESET}║ ║"
|
||||
echo -e "╚═══════════════════════╩══════════════════════════════════════════════════════════════╝"
|
||||
echo "${YELLOW}Hello ${CYAN}$(whoami)${YELLOW}! You are now connected to ${RED}$(hostname)"
|
||||
echo "${YELLOW}Type ${BGREEN}cmds${YELLOW} to see a list of commands available.${RESET}"
|
||||
echo "[${BLUE}RULES${RESET}]"
|
||||
echo " ${GREY}*${YELLOW} This is a private system that you are not to give out access to anyone"
|
||||
echo " without permission from the system admin. No illegal files or activites."
|
||||
echo " ${GREY}*${YELLOW} Avoid denial of service attacks out of respect for other users on the system."
|
||||
echo " ${GREY}*${YELLOW} Stay in your home directory, keep the system clean, and make regular backups."
|
||||
}
|
||||
|
||||
setup_user() {
|
||||
@ -41,7 +40,7 @@ setup_user() {
|
||||
wget -O /home/$1/.scripts/contact https://git.supernets.org/acidvegas/acidbox/blob/master/files/contact
|
||||
wget -O /home/$1/.scripts/rules https://git.supernets.org/acidvegas/acidbox/blob/master/files/rules
|
||||
wget -O /home/$1/.scripts/vhosts https://git.supernets.org/acidvegas/acidbox/blob/master/files/vhosts
|
||||
echo "clear && reset" > /home/$1/.bash_logout
|
||||
echo "clear && reset/home/$1/.bash_logout"
|
||||
echo "[[ -f ~/.bashrc ]] && . ~/.bashrc" > /home/$1/.bash_profile
|
||||
}
|
||||
|
||||
|
12
cleanup
12
cleanup
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
clear_history() {
|
||||
for USERHOME in /home/*/; do
|
||||
for f in .config/cmus/command-history .config/cmus/search-history bash_history history lesshst mysql_history nano_history python_history recently-used ssh/known_hosts wget-hsts wpa_cli_history; do
|
||||
[ -f $USERHOME/.$f ] && rm $USERHOME/.bash_history
|
||||
done
|
||||
done
|
||||
for f in btmp faillog journal lastlog syslog wtmp; do
|
||||
[ -f /var/log/$f ] && >/var/log/$f
|
||||
done
|
||||
journalctl --vacuum-size=1B
|
||||
}
|
6
cmus-now
6
cmus-now
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
if ps -C cmus > /dev/null; then
|
||||
artist=`cmus-remote -Q | grep --text '^tag artist' | sed '/^tag artistsort/d' | awk '{gsub("tag artist ", "");print}'`
|
||||
title=`cmus-remote -Q | grep --text '^tag title' | sed -e 's/tag title //' | awk '{gsub("tag title ", "");print}'`
|
||||
notify-send "Now Playing: $artist - $title"
|
||||
fi
|
@ -7,7 +7,7 @@
|
||||
| d | can only see messages prefixed with `!@$. | |
|
||||
| D | can only receive private messages from operators, servers & services | |
|
||||
| H | hide operator status in WHOIS | oper-only |
|
||||
| I | hide online time in WHOIS | oper-only |
|
||||
| I | hide online time in WHOIS | |
|
||||
| i | hidden from WHO & NAMES if queried from outside the channel | |
|
||||
| o | network operator | set by server |
|
||||
| p | hide your channels in WHOIS | |
|
||||
@ -23,15 +23,34 @@
|
||||
| Z | can only send/receive private messages with ssl/tls users | |
|
||||
| z | indicates connected via ssl/tls | set by server |
|
||||
|
||||
#### Snomasks
|
||||
| Snomask | Description
|
||||
| ------- | ----------
|
||||
| b | dns blacklist hits |
|
||||
| c | local connects |
|
||||
| F | far connects |
|
||||
| f | flood notices |
|
||||
| k | kills |
|
||||
| e | eyes notices *(verbose)* |
|
||||
| j | junk notices *(noisy)* |
|
||||
| v | VHOST usage |
|
||||
| G | GLINE and SHUN usage |
|
||||
| n | local nick changes |
|
||||
| N | remote nick changes |
|
||||
| q | QLINE rejection notices |
|
||||
| s | server notices |
|
||||
| S | spamfilter hits |
|
||||
| o | oper notices |
|
||||
|
||||
#### Channel Modes
|
||||
###### Access Levels
|
||||
| Mode | Description | Restriction |
|
||||
| ---- | -------------------------------------------------------- | --------------- |
|
||||
| v | voice - able to speak in +m/+M channels | +h |
|
||||
| h | halfop - has most of the privledges as op | +o |
|
||||
| o | op - full privledges | +o |
|
||||
| a | admin - same as op except can not be kick by +ho users | +q |
|
||||
| q | owner - same as op except can not be kick by +hoa users | set by services |
|
||||
| Mode | Name | Description | Restriction |
|
||||
| ---- | ------ | ----------------------------------------------- | --------------- |
|
||||
| v | voice | able to speak in +m/+M channels | +h |
|
||||
| h | halfop | has most of the privledges as op | +o |
|
||||
| o | op | full privledges | +o |
|
||||
| a | admin | same as op except can not be kick by +ho users | +q |
|
||||
| q | owner | same as op except can not be kick by +hoa users | set by services |
|
||||
|
||||
###### List Modes
|
||||
| Mode | Description | Restriction |
|
||||
|
68
irc/efkh.py
Normal file
68
irc/efkh.py
Normal file
@ -0,0 +1,68 @@
|
||||
#!/usr/bin/env python
|
||||
# EFKnockr Helper - Developed by acidvegas in Python (https://acid.vegas/random)
|
||||
|
||||
import json
|
||||
|
||||
_bnc = list()
|
||||
_irc = list()
|
||||
_unknown = list()
|
||||
|
||||
def _parse_data():
|
||||
with open('netking.json','r') as _data_file:
|
||||
for _line in _data_file:
|
||||
_data = json.loads(_line)
|
||||
if 'product' in _data:
|
||||
if _data['product'] in ('BitlBee IRCd','psyBNC','Minbif','ShroudBNC irc-proxy'):
|
||||
_bnc.append(_line)
|
||||
else:
|
||||
_irc.append(_line)
|
||||
else:
|
||||
if 'data' in _data:
|
||||
if 'bitlbee' in _data['data'].lower() or 'psybnc' in _data['data'].lower() or 'shroudbnc' in _data['data'].lower():
|
||||
_bnc.append(_line)
|
||||
else:
|
||||
if ':***' in _data['data'] or 'Looking up your hostname' in _data['data']:
|
||||
_irc.append(_line)
|
||||
else:
|
||||
if 'PHP Notice' not in _data['data']:
|
||||
if 'NOTICE' in _data['data']:
|
||||
_irc.append(_line)
|
||||
else:
|
||||
_unknown.append(_line)
|
||||
else:
|
||||
_unknown.append(_line)
|
||||
|
||||
def _write_data():
|
||||
with open('bnc.json','w') as _bnc_file:
|
||||
for _line in _bnc:
|
||||
_bnc_file.write(_line)
|
||||
with open('irc.json','w') as _irc_file:
|
||||
for _line in _irc:
|
||||
_irc_file.write(_line)
|
||||
with open('unknown.json','w') as _unknown_file:
|
||||
for _line in _unknown:
|
||||
_unknown_file.write(_line)
|
||||
|
||||
_parse_data()
|
||||
_write_data()
|
||||
|
||||
print('BNC: ' + str(len(_bnc )))
|
||||
print('IRC: ' + str(len(_irc )))
|
||||
print('???: ' + str(len(_unknown)))
|
||||
|
||||
_ips = list()
|
||||
|
||||
def _parse_ips():
|
||||
with open('irc.json','r') as _data_file:
|
||||
for _line in _data_file:
|
||||
_data = json.loads(_line)
|
||||
_ips.append(_data['ip_str'])
|
||||
|
||||
def _write_ips():
|
||||
with open('clean.txt','w') as _clean_file:
|
||||
for _line in _ips:
|
||||
_clean_file.write(_line + '\n')
|
||||
|
||||
_parse_ips()
|
||||
_ips = sorted(set(_ips))
|
||||
_write_ips()
|
2
mkchroot
2
mkchroot
@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
# developed by acidvegas (https://acid.vegas/random)
|
||||
|
||||
set -e
|
||||
|
||||
CHROOT_BASE="/var/jail"
|
||||
|
51
networking/ampscan.py
Normal file
51
networking/ampscan.py
Normal file
@ -0,0 +1,51 @@
|
||||
#!/usr/bin/env python
|
||||
# developed by acidvegas in Python (https://acid.vegas/random)
|
||||
|
||||
import socket, struct, random, threading
|
||||
|
||||
scan_ports = {
|
||||
17 : 'qotd', # 140.3
|
||||
19 : 'chargen', # 358.8
|
||||
53 : 'dns', # 28-54
|
||||
69 : 'tftp', # 60
|
||||
111 : 'portmap', # 7 to 28
|
||||
123 : 'ntp', # 556.9
|
||||
137 : 'netbios', # 3.8
|
||||
139 : 'ws-discovery', # 15k
|
||||
161 : 'snmpv2', # 6.3
|
||||
520 : 'ripv1', # 131.24
|
||||
389 : 'ldap', # 46-55 (TCP)
|
||||
389 : 'cldap', # 56-70
|
||||
445 : 'ws-discovery', # 15k
|
||||
751 : 'kad', # 16.3
|
||||
1900 : 'ssdp', # 30.8
|
||||
3283 : 'apple remote', # 35.5
|
||||
1434 : 'mssql', # 25
|
||||
5353 : 'mdns', # 2-10
|
||||
6881 : 'bittorrent', # 3.8
|
||||
26000 : 'quake', # 63.9
|
||||
27015 : 'steam', # 5.5
|
||||
11211 : 'memcached', # 10k-51k
|
||||
}
|
||||
|
||||
def scan():
|
||||
while True:
|
||||
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
|
||||
for port in scan_ports:
|
||||
sock = socket.socket()
|
||||
sock.settimeout(3)
|
||||
try:
|
||||
code = sock.connect((ip, port))
|
||||
except socket.error:
|
||||
pass
|
||||
else:
|
||||
if not code:
|
||||
print('FOUND ' + ip + ':' + str(port) + ' (' + scan_ports[port] + ')')
|
||||
finally:
|
||||
sock.close()
|
||||
|
||||
for i in range(100):
|
||||
threading.Thread(target=scan).start()
|
||||
|
||||
while True:
|
||||
input('')
|
29
networking/mullvad.sh
Normal file
29
networking/mullvad.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#ROOT CHECK
|
||||
|
||||
ACCOUNT_NUMBER=CHANGEME
|
||||
PRIVATE_KEY= CHANGEME # wg genkey
|
||||
|
||||
function get_servers() {
|
||||
ADDRESS="$(curl -sSL https://api.mullvad.net/wg/ -d account="$ACCOUNT_NUMBER" --data-urlencode pubkey="$(wg pubkey <<< "$PRIVATE_KEY")")"
|
||||
RESPONSE="$(curl -LsS https://api.mullvad.net/public/relays/wireguard/v1/)"
|
||||
FIELDS="$(jq -r 'foreach .countries[] as $country (.; .; foreach $country.cities[] as $city (.; .; foreach $city.relays[] as $relay (.; .; $country.name, $city.name, $relay.hostname,$relay.public_key, $relay.ipv4_addr_in)))' <<< "$RESPONSE")"
|
||||
while read -r COUNTRY && read -r CITY && read -r HOSTNAME && read -r PUBKEY && read -r IPADDR; do
|
||||
{
|
||||
echo "#COUNTRY @ $CITY"
|
||||
echo "[Interface]"
|
||||
echo "PrivateKey = $PRIVATE_KEY"
|
||||
echo "Address = $ADDRESS"
|
||||
echo "DNS = 193.138.218.74"
|
||||
echo -e "\n[Peer]"
|
||||
echo "PublicKey = $PUBKEY"
|
||||
echo "Endpoint = $IPADDR:51820"
|
||||
echo "AllowedIPs = 0.0.0.0/0, ::/0"
|
||||
} > /etc/mullvad-${HOSTNAME%-wireguard}.conf
|
||||
done <<< "$FIELDS"
|
||||
}
|
||||
|
||||
function select_server() {
|
||||
for file in /etc/wireguard/*; do
|
||||
echo $(basename "$file" | cut -d "-" -f2 )
|
||||
done
|
||||
}
|
Loading…
Reference in New Issue
Block a user