Skip to content

Instantly share code, notes, and snippets.

@m4t7e0
m4t7e0 / connect-to-fortigate.sh
Last active September 18, 2023 15:51 — forked from leomos/connect-to-fortigate.sh
Fortigate firewall connection
#!/bin/bash
USER="user"
PASSWORD="password"
SEP="+++++"
TMP=`curl -s -D - ident.me | grep window.location`
echo "Header with magic: "$TMP
MAGIC=`echo $TMP | grep -o '[[:alnum:]]\{16\}' | tr -d '\r\n'`
HOST=`echo $TMP | cut -d / -f3 | cut -d : -f1 | tr -d '\r\n'`
@m4t7e0
m4t7e0 / hosts
Last active June 30, 2019 18:12 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# 20180201 Adobe Activation Added
# This hosts was an improved version of the file brought from Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#
# See below for acknowledgements.
# Please forward any additions, corrections by git comment