brew install qemu gcc libvirt
brew services start libvirt
vagrant plugin install vagrant-libvirt- Listening...
python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...- Scapy
- Crafting and sending single TCP SYN packet
from scapy.all import *
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
| from flask import * | |
| import requests | |
| app = Flask(__name__) | |
| @app.route('/follow') | |
| def follow_url(): | |
| url = request.args.get('url', '') | |
| if url: | |
| return (requests.get(url).text) |
- Format USB drive: Master Boot Record scheme and format set to MS-FAT (aka FAT32).
- Use unetbootin.app to flash iso to drive.
- Alternatively / as backup approach see Create a Bootable ESXi Installer USB Flash Drive on macOS
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
| sudo vi /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf | |
| sudo vi /Library/Preferences/VMware\ Fusion/networking | |
| sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure | |
| sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop | |
| sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start | |
| sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure; sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop; sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start |
Examples and links on how to do port forwarding on
- Linux using
iptables - MacOS with
pfctl(control the packet filter (PF) and NAT device) - with
ssh
Additional topic/link:
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
| IP_ADDRESSES=`cat vsftpd.log | grep CONNECT | awk -F':' '{print $7}'|sed 's/\"//'|sort|uniq|tr '\n' ' '` | |
| for address in $IP_ADDRESSES; do | |
| curl --silent http://api.ipstack.com/${address}?access_key=$IPSTACK_KEY | jq '.city, .country_name, .continent_name'| tr '\n' ','|sed "s/,$//" | |
| done |
xzcat ubuntu-19.10.1-preinstalled-server-arm64+raspi3.img.xz | sudo dd of=/dev/disk6 bs=32m`Boot Raspberry. Headless possibel with Ubuntu image as SSH login enabled by default in image.
$ ssh [email protected] - test login via ssh (ubuntu/ubuntu)