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
| # Set layout PT | |
| setxkbmap pt | |
| # Setup working directory | |
| mkdir -p /volumes/storage1 | |
| mount /dev/sda1 -t ext4 /volumes/storage1 | |
| cd /volumes/storage1 | |
| # Download volatility repo |
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
| # First get list of files: | |
| # fls -f ext4 -o 2048 -p -r ./image_disk 573445 | grep -v '^..-' | grep -v '^... \*' > files.lst | |
| IMAGE=image_disk | |
| LIST=files.lst | |
| DEST=/path/to/output/dir | |
| cat $LIST | while read line; do | |
| filetype=`echo "$line" | awk {'print $1'}` | |
| filenode=`echo "$line" | awk {'print $2'}` |
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 | |
| # Usage: | |
| # ./load-openvswitch [ip-address-of-eth0] [default-gateway-ip-address] | |
| # Example: | |
| # ./load-openvswitch 192.168.1.10 192.168.1.1 | |
| sudo ifconfig ovsbr0 up | |
| sudo ifconfig eth1 up | |
| sudo ifconfig eth2 up |
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 | |
| # Program name: pingall.sh | |
| # Author: https://askubuntu.com/users/127327/souravc | |
| # Source: https://askubuntu.com/questions/413367/ping-multiple-ips-using-bash | |
| date | |
| cat thesis-servers.txt | while read output | |
| do | |
| ping -c 1 "$output" > /dev/null | |
| if [ $? -eq 0 ]; then | |
| echo "node $output is up" |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.define "base" do |base| | |
| #Set vagrant box to use | |
| base.vm.box = "debian/buster64" | |
| #Setup basic settings |
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
| # SOCKS Proxy (browser proxy config required) | |
| ssh -D 8123 -f -C -q -N via_host | |
| # Local Port Forwarding (-nNT --> only forwarding, don't get tty) | |
| ssh -nNT -L s_port:forward_host:d_port via_host | |
| # Remote Port Forwarding | |
| ssh -R s_port:forward_host:d_port via_host |
OlderNewer