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 | |
| IPT="/sbin/iptables" | |
| # Server IP | |
| SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
| # Your DNS servers you use: cat /etc/resolv.conf | |
| DNS_SERVER="8.8.4.4 8.8.8.8" | |
| # Allow connections to this package servers |
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/sh | |
| : ${1?"Usage: $0 ip subnet to scan. eg '192.168.1.'"} | |
| subnet=$1 | |
| for addr in `seq 0 1 255 `; do | |
| # ( echo $subnet$addr) | |
| ( ping -c 3 -t 5 $subnet$addr > /dev/null && echo $subnet$addr is Alive ) & | |
| done |
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/sh | |
| # Light-weight script for moving files across a network | |
| # | |
| # To use: | |
| # 1. Make sure tar, netcat, and pv are installed. | |
| # 2. Edit TARGET_IP and TARGET_PORT | |
| # 3. Run with `--listen` on the target machine. | |
| # 3. Run with files/folders to move as arguments on the source machine. | |
| # | |
| # Troubleshooting: |
NewerOlder