| Address block (CIDR) | Range | Number of Addresses | Scope | Decsription |
|---|---|---|---|---|
| 0.0.0.0/8 | 0.0.0.0–0.255.255.255 | 16,777,216 | Software | Current (local, "this") network |
| 10.0.0.0/8 | 10.0.0.0–10.255.255.255 | 16,777,216 | Private network | Used for local communications within a private network |
| 100.64.0.0/10 | 100.64.0.0–100.127.255.255 | 4,194,304 | Private network | IPv4 shared address space |
| 127.0.0.0/8 | 127.0.0.0–127.255.255.255 | 16,777,216 | Host | Used for loopback addresses to the local host |
This file contains hidden or 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
| Host internal-server | |
| HostName 192.0.1.10 | |
| User internal-user | |
| ServerAliveInterval 60 | |
| ProxyCommand sh -c ">&2 echo 'Password is: XXXXXXXX'; ssh -T -i ~/.ssh/generic_key external-user@123.123.123.123 'nc %h %p'" |
This file contains hidden or 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
| sed ':a;N;$!ba;s/\n/<br \/>/g' # Joins multiple lines and separates them with the string "<br />". |
This file contains hidden or 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
| # https://docs.cloudfoundry.org/adminguide/uaa-user-management.html#external-group | |
| uaac group mappings |
This file contains hidden or 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
| ## -z is optional. Traffic sent will be less, but CPU overhead will be higher. | |
| # On the receiving end do: | |
| nc -vl 12345 | tar xzv | |
| # And on the sending end do: | |
| tar czvf - * | nc -v <remote_host> 12345 |
This file contains hidden or 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
| # Command to copy files with bosh ssh/scp | |
| # Paths must absolute, no wildcards | |
| # Download | |
| bosh scp <job_name> <job_instance_number> --download <remote_file_path> <local_file_path> | |
| # Upload | |
| bosh scp <job_name> <job_instance_number> --upload <local_file_path> <remote_file_path> |
This file contains hidden or 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 | |
| # Secure OpenVPN server installer for Debian, Ubuntu, CentOS and Arch Linux | |
| # https://github.com/Angristan/OpenVPN-install | |
| if [[ "$EUID" -ne 0 ]]; then | |
| echo "Sorry, you need to run this as root" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| # Netcat | |
| while true ; do nc -k -l 80 < index.html ; done | |
| # Perl | |
| perl -MIO::Socket::INET -ne \ | |
| 'BEGIN{$l=IO::Socket::INET->new(LocalPort=>80,Proto=>"tcp",Listen=>5,ReuseAddr=>1);\ | |
| $l=$l->accept}print $l $_' < index.html | |
| # Socat | |
| socat -u - tcp-listen:80,reuseaddr < index.html |
This file contains hidden or 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
| https://hashcat.net/wiki/doku.php?id=example_hashes | |
| https://wiki.skullsecurity.org/Passwords |
This file contains hidden or 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
| ....................../´¯/) | |
| ....................,/¯../ | |
| .................../..../ | |
| ............./´¯/'...'/´¯¯`·¸ | |
| ........../'/.../..../......./¨¯\ | |
| ........('(...´...´.... ¯~/'...') | |
| .........\.................'...../ | |
| ..........''...\.......... _.·´ | |
| ............\..............( | |
| ..............\.............\... |