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
#!/usr/bin/python3 | |
import subprocess as sp | |
import time | |
import sys | |
import re | |
def exec_cmd(cmd): | |
proc = sp.Popen(cmd, shell=True, stdout=sp.PIPE) | |
res = proc.communicate() | |
out = res[0].decode(sys.stdout.encoding) |
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
#include <vector> | |
#include <string> | |
#include <iostream> | |
#include <set> | |
#include <chrono> | |
#include <iomanip> | |
#include <map> | |
#include <Windows.h> | |
#include <TlHelp32.h> | |
using namespace std; |
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
# Small python program to retrieve location and/or | |
# other infos about a internet address. | |
# Requires python3 and requests library. | |
# Thanks to freegeoip.net for its free JSON API. | |
import requests | |
import sys | |
GEOIP_URL = "http://freegeoip.net/json/" | |
arg_options = [] |