NOTE: You must use public key based authentication.
- Create user
adduser testuser
- Grant sudo
usermod -aG sudo testuser
- ufw enable/disable
#!/bin/bash | |
while true; | |
do | |
printf "$(awk -v c="$(tput cols)" -v s="$RANDOM" 'BEGIN{srand(s);while(--c>=0){printf("\xe2\x96\\%s",sprintf("%o",150+int(10*rand())));}}')"; | |
done |
cd ~/Downloads
to change into your downloads directorysudo apt install jdk-11.0.6_linux-x64_bin.deb
update-alternatives --config java
sudo apt autoremove | |
sudo apt clean | |
sudo apt-get autoclean | |
sudo journalctl --vacuum-time=3d | |
rm -rf ~/.cache/thumbnails/* | |
set -eu | |
snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" |
#/usr/bin/bash | |
# strings to look for in our file | |
# Note: you could just parse the whole file. But if you put in a bad password your IP | |
# could end up on the bad guy list | |
declare -a badstrings=("Failed password for invalid user" | |
"input_userauth_request: invalid user" | |
"pam_unix(sshd:auth): check pass; user unknown" | |
"input_userauth_request: invalid user" | |
"does not map back to the address" | |
"pam_unix(sshd:auth): authentication failure" |
$Hso = New-Object Net.HttpListener | |
$Hso.Prefixes.Add("http://+:8000/") | |
$Hso.Start() | |
While ($Hso.IsListening) { | |
$HC = $Hso.GetContext() | |
$HRes = $HC.Response | |
$HRes.Headers.Add("Content-Type","text/plain") | |
$Buf = [Text.Encoding]::UTF8.GetBytes((GC (Join-Path $Pwd ($HC.Request).RawUrl))) | |
$HRes.ContentLength64 = $Buf.Length | |
$HRes.OutputStream.Write($Buf,0,$Buf.Length) |
<HTML> | |
<HEAD> | |
<script> | |
try { | |
a=new ActiveXObject('Wscript.Shell'); |
#!/usr/bin/env python2 | |
#============================================================================================================# | |
#======= Simply injects a JavaScript Payload into a GIF. ====================================================# | |
#======= or it creates a JavaScript Payload as a GIF. ====================================================# | |
#======= The resulting GIF must be a valid (not corrupted) GIF. =============================================# | |
#======= Author: marcoramilli.blogspot.com ==================================================================# | |
#======= Version: PoC (don't even think to use it in development env.) ======================================# | |
#======= Disclaimer: ========================================================================================# | |
#THIS IS NOT PEP3 FORMATTED | |
#THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR |
$ curl -s https://ipvigilante.com/$(curl -s https://ipinfo.io/ip) | jq '.data.latitude, .data.longitude, .data.city_name, .data.country_name' |