There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
import requests | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) | |
URL = "https://ipinfo.io" | |
headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0","Connection":"close","Accept-Language":"en-US,en;q=0.5","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Upgrade-Insecure-Requests":"1"} | |
response = session.get(URL, headers=headers, timeout=15, verify=False) | |
result = response.text | |
print(result) |
DELAY 750 | |
GUI r | |
DELAY 1000 | |
STRING explorer.exe http://url-maquina/nombre-img.jpg | |
ENTER | |
DELAY 1000 | |
F11 |
https://reputation.alienvault.com/reputation.generic.gz | |
https://reputation.alienvault.com/reputation.generic | |
https://reputation.alienvault.com/reputation.data | |
https://reputation.alienvault.com/reputation.snort.gz | |
https://reputation.alienvault.com/reputation.snort | |
https://reputation.alienvault.com/reputation.iptables.gz | |
https://reputation.alienvault.com/reputation.iptables | |
https://reputation.alienvault.com/reputation.squid.gz | |
https://reputation.alienvault.com/reputation.squid | |
https://reputation.alienvault.com/reputation.unix.gz |
import re | |
import time | |
# A regular expression which separates the interesting fields and saves them in named groups | |
regexp = r""" | |
\s* # a interface line starts with none, one or more whitespaces | |
(?P<interface>\w+):\s+ # the name of the interface followed by a colon and spaces | |
(?P<rx_bytes>\d+)\s+ # the number of received bytes and one or more whitespaces | |
(?P<rx_packets>\d+)\s+ # the number of received packets and one or more whitespaces |
I hereby claim:
To claim this, I am signing this object: