├── testlotto.sh ├── test5000 ├── regularphoto_nothingtoseehere.jpg ├── halloweenproject ├── pinout_raspberrypi_relay.png ├── style.css ├── READ_THIS_FIRST ├── index.html └── halloween.py ├── configlinuxlab.sh ├── bestscript.sh ├── devnet.yml ├── pihole.sh ├── gns3server_azure.txt └── youjustgothacked.txt /testlotto.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Hey" 4 | -------------------------------------------------------------------------------- /test5000: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "This is NetworkChuck" 4 | -------------------------------------------------------------------------------- /regularphoto_nothingtoseehere.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theNetworkChuck/NetworkChuck/HEAD/regularphoto_nothingtoseehere.jpg -------------------------------------------------------------------------------- /halloweenproject/pinout_raspberrypi_relay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theNetworkChuck/NetworkChuck/HEAD/halloweenproject/pinout_raspberrypi_relay.png -------------------------------------------------------------------------------- /configlinuxlab.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | yum -y update 4 | 5 | yum install -y epel-release 6 | yum install -y xrdp 7 | systemctl enable xrdp 8 | systemctl start xrdp 9 | 10 | yum groupinstall -y "xfce" 11 | echo "xfce4-session" > ~/.Xclients 12 | chmod a+x ~/.Xclients 13 | -------------------------------------------------------------------------------- /bestscript.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | dohost 'conf t ; interface gi2 ; no shut' 4 | dohost 'conf t ; interface gi3 ; no shut' 5 | dohost 'conf t ; interface gi4 ; no shut' 6 | echo "you're up!!!" 7 | sleep 10 8 | dohost 'conf t ; interface gi2 ; shut' 9 | dohost 'conf t ; interface gi3 ; shut' 10 | dohost 'conf t ; interface gi4 ; shut' 11 | echo "no wait...you're down" 12 | -------------------------------------------------------------------------------- /devnet.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: General Config 4 | 5 | hosts: routers 6 | 7 | tasks: 8 | 9 | - name: Add Banner 10 | 11 | ios_banner: 12 | banner: login 13 | text: | 14 | Nicolas Cage is the 15 | Tiger King 16 | state: present 17 | 18 | - name: Add loopback 19 | 20 | ios_interface: 21 | name: Loopback21 22 | state: present 23 | -------------------------------------------------------------------------------- /halloweenproject/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: black; 3 | color: white; 4 | } 5 | .button { 6 | font: bold 25px "Trebuchet MS"; 7 | text-decoration: none; 8 | background-color: #EEEEEE; 9 | color: #333333; 10 | padding: 2px 6px 2px 6px; 11 | border-top: 1px solid #CCCCCC; 12 | border-right: 1px solid #333333; 13 | border-bottom: 1px solid #333333; 14 | border-left: 1px solid #CCCCCC; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /halloweenproject/READ_THIS_FIRST: -------------------------------------------------------------------------------- 1 | #Just a quick note. 2 | 3 | #If you want to run this program ALL THE TIME (which I'm assuming you do), even when you're not sitting at the CLI, DO THIS: 4 | 5 | #Install tmux. This is a session multiplexer...basically you can have multiple SSH sessions in one window. 6 | 7 | #COMMAND: 8 | 9 | sudo apt install tmux 10 | 11 | #This will open a new terminal which will allow you to run the script. 12 | 13 | sudo python halloween/halloween.py 14 | 15 | #Close your SSH client and you're done!! 16 | -------------------------------------------------------------------------------- /pihole.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # https://github.com/pi-hole/docker-pi-hole/blob/master/README.md 4 | 5 | docker run -d \ 6 | --name pihole \ 7 | -p 53:53/tcp -p 53:53/udp \ 8 | -p 80:80 \ 9 | -p 443:443 \ 10 | -p 8080:8080 \ 11 | -e TZ="America/Chicago" \ 12 | -v "$(pwd)/etc-pihole/:/etc/pihole/" \ 13 | -v "$(pwd)/etc-dnsmasq.d/:/etc/dnsmasq.d/" \ 14 | --dns=127.0.0.1 --dns=1.1.1.1 \ 15 | --restart=unless-stopped \ 16 | thenetworkchuck/networkchuck_pihole 17 | 18 | printf 'Starting up pihole container ' 19 | for i in $(seq 1 20); do 20 | if [ "$(docker inspect -f "{{.State.Health.Status}}" pihole)" == "healthy" ] ; then 21 | printf ' OK' 22 | echo -e "\n$(docker logs pihole 2> /dev/null | grep 'password:') for your pi-hole: https://${IP}/admin/" 23 | exit 0 24 | else 25 | sleep 3 26 | printf '.' 27 | fi 28 | 29 | if [ $i -eq 20 ] ; then 30 | echo -e "\nTimed out waiting for Pi-hole start, consult check your container logs for more info (\`docker logs pihole\`)" 31 | exit 1 32 | fi 33 | done; 34 | © 2020 GitHub, Inc. 35 | -------------------------------------------------------------------------------- /halloweenproject/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | NetworkChuck Halloween 4 | 5 |

NetworkChuck Halloween Controller


6 |
7 | 8 |
9 |

10 | ZOMBIE (1) 11 | Activate 12 |

13 |

14 | Stone Wolf (2) 15 | Activate 16 |

17 |

18 | Werewolf (3) 19 | Activate 20 |

21 |

22 | Pumpkin (4) 23 | Activate 24 |

25 |

26 | Monster Mash 27 | Activate 28 |

29 | 30 | 31 | -------------------------------------------------------------------------------- /halloweenproject/halloween.py: -------------------------------------------------------------------------------- 1 | import RPi.GPIO as GPIO 2 | import time 3 | from flask import Flask, render_template, request 4 | app = Flask(__name__) 5 | zombie = 40 6 | stonewolf = 38 7 | werewolf = 36 8 | pumpkin = 32 9 | monstermash = [40, 38, 36, 32] 10 | GPIO.setmode(GPIO.BOARD) 11 | relay = monstermash 12 | for x in relay: 13 | GPIO.setup(x, GPIO.OUT) 14 | 15 | @app.route("/") 16 | def index(): 17 | return render_template('index.html') 18 | @app.route("//") 19 | def action(deviceName): 20 | if deviceName != 'monstermash': 21 | if deviceName == 'stonewolf': 22 | relay = stonewolf 23 | if deviceName == 'werewolf': 24 | relay = werewolf 25 | if deviceName == 'pumpkin': 26 | relay = pumpkin 27 | if deviceName == 'zombie': 28 | relay = zombie 29 | GPIO.setmode(GPIO.BOARD) 30 | GPIO.setup(relay, GPIO.OUT) 31 | GPIO.output(relay, GPIO.LOW) 32 | time.sleep(5) 33 | GPIO.output(relay, GPIO.HIGH) 34 | else: 35 | relay = monstermash 36 | for x in relay: 37 | GPIO.setmode(GPIO.BOARD) 38 | GPIO.setup(x, GPIO.OUT) 39 | GPIO.output(x, GPIO.LOW) 40 | time.sleep(5) 41 | for x in relay: 42 | GPIO.output(x, GPIO.HIGH) 43 | return render_template('index.html') 44 | if __name__ == "__main__": 45 | app.run(host='0.0.0.0', port=80, debug=True) 46 | -------------------------------------------------------------------------------- /gns3server_azure.txt: -------------------------------------------------------------------------------- 1 | 2 | #Microsoft Azure has datacenters EVERYWHERE! I would recommend you choose the closest region to you and input that in the location below. 3 | #Replace 'southcentralus' with your local region. Or, just leave it as is! 4 | #Also, feel free to change the user name and password below. If not, don't worry about it. 5 | #If you don't change the username/password below, here they are again so you can login to your GNS3 server: 6 | #username: cbtnuggetsadmin 7 | #password: CBTNu$$ets!@#4 8 | #Hey again, please change the domainname to something unique to you or you might get errors! 9 | 10 | 11 | #START----Copy everything between this line and the STOP below. Paste into the Azure Cloud Shell-------------------------- 12 | 13 | $location = 'southcentralus' 14 | $user = "cbtnuggetsadmin" 15 | $password = convertto-securestring 'CBTNu$$ets!@#4' -asplaintext -force 16 | $credential = new-object System.Management.Automation.PSCredential ($user, $password); 17 | $domainname = "mygns3server" 18 | 19 | 20 | new-azresourcegroup -name GNS3 -location $location 21 | New-AzureRmNetworkSecurityGroup -Name GNS3 -ResourceGroupName GNS3 -Location $location 22 | 23 | $nsg=Get-AzureRmNetworkSecurityGroup -Name GNS3 -ResourceGroupName GNS3 24 | $nsg | Add-AzureRmNetworkSecurityRuleConfig -Name Allow_All_the_things -Description "Let it all through" -Access Allow -Protocol * -Direction Inbound -Priority 100 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange * | Set-AzureRmNetworkSecurityGroup 25 | 26 | new-azvm -resourcegroup GNS3 -location $location -name 'GNS3-SERVER' -image UbuntuLTS -size 'Standard_D4s_v3' -securitygroupname GNS3 -credential $credential -DomainNameLabel $domainname 27 | 28 | #STOP ------------------------------------------------------------------------------------------------------------------ 29 | 30 | 31 | 32 | 33 | #START -- Copy the code below and paste into your GNS3 server---------------------------------------------------------- 34 | cd /tmp 35 | curl https://raw.githubusercontent.com/GNS3/gns3-server/master/scripts/remote-install.sh > gns3-remote-install.sh 36 | sudo bash gns3-remote-install.sh --with-iou --with-i386-repository 37 | -------------------------------------------------------------------------------- /youjustgothacked.txt: -------------------------------------------------------------------------------- 1 | 2 | __ __ _ _ _ _ _ ___ _____ _ __ ___________ _ _ 3 | \ \ / / (_) | | | | | | | | / _ \/ __ \| | / /| ___| _ \ | | 4 | \ V /___ _ _ _ _ _ ___| |_ __ _ ___ | |_ | |_| |/ /_\ \ / \/| |/ / | |__ | | | | | | 5 | \ // _ \| | | | | | | | / __| __| / _` |/ _ \| __| | _ || _ | | | \ | __|| | | | | | 6 | | | (_) | |_| | | | |_| \__ \ |_ | (_| | (_) | |_ | | | || | | | \__/\| |\ \| |___| |/ /|_|_| 7 | \_/\___/ \__,_| | |\__,_|___/\__| \__, |\___/ \__| \_| |_/\_| |_/\____/\_| \_/\____/|___/ (_|_) 8 | _/ | __/ | 9 | |__/ |___/ 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | __ __ _ _ 19 | \ \ / / | | (_) 20 | \ V /___ _ _ _ __ _____ __ | |__ __ ___ _____ __ _ __ ___ _ __ _ _ ___ 21 | \ // _ \| | | | | '_ \ / _ \ \ /\ / / | '_ \ / _` \ \ / / _ \ / _` | \ \ / / | '__| | | / __| 22 | | | (_) | |_| | | | | | (_) \ V V / | | | | (_| |\ V / __/ | (_| | \ V /| | | | |_| \__ \ 23 | \_/\___/ \__,_| |_| |_|\___/ \_/\_/ |_| |_|\__,_| \_/ \___| \__,_| \_/ |_|_| \__,_|___/ 24 | 25 | 26 | _ _ _ 27 | | | | | | 28 | ___ _ __ _ _ ___ _ _ _ __ ___ ___ _ __ ___ _ __ _ _| |_ ___ _ __| | | 29 | / _ \| '_ \ | | | |/ _ \| | | | '__| / __/ _ \| '_ ` _ \| '_ \| | | | __/ _ \ '__| | | 30 | | (_) | | | | | |_| | (_) | |_| | | | (_| (_) | | | | | | |_) | |_| | || __/ | |_|_| 31 | \___/|_| |_| \__, |\___/ \__,_|_| \___\___/|_| |_| |_| .__/ \__,_|\__\___|_| (_|_) 32 | __/ | | | 33 | |___/ |_| 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | _____ _ _ _ 43 | |_ _| | | | | (_) _ 44 | | | ___ _ __ ___ _ __ ___ _____ _____ | |_| |__ ___ __ ___ _ __ _ _ ___(_) 45 | | |/ _ \ | '__/ _ \ '_ ` _ \ / _ \ \ / / _ \ | __| '_ \ / _ \ \ \ / / | '__| | | / __| 46 | | | (_) | | | | __/ | | | | | (_) \ V / __/ | |_| | | | __/ \ V /| | | | |_| \__ \_ 47 | \_/\___/ |_| \___|_| |_| |_|\___/ \_/ \___| \__|_| |_|\___| \_/ |_|_| \__,_|___(_) 48 | 49 | 50 | 51 | Buy a bag of NetworkChuck coffee: https://networkchuck.coffee 52 | 53 | OR 54 | 55 | Join the NetworkChuck YouTube membership: http://bit.ly/2XPaF7u 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | --------------------------------------------------------------------------------