Skip to content

Instantly share code, notes, and snippets.

View powerexploit's full-sized avatar
🏠
Working from home

powerexploit powerexploit

🏠
Working from home
View GitHub Profile
@powerexploit
powerexploit / TTLOs.psm1
Created January 17, 2020 06:59
Os Detection With TTL
#TTlOs.psm1
#<
# Ping scanner with os detection according with ttl value.
# Test-connection is a type of function in powershell uses as a ping command.
#>
#
function PsPing
{
param($ip)
Process
import stem
from stem.process import launch_tor_with_config
def print_lines(line):
if('Bootstapped' in line):
print(line)
tor = launch_tor_with_config(config = {'ControlPort': '9051'}, init_msg_handler = print_lines)
tor.terminate()
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host