Skip to content

Instantly share code, notes, and snippets.

View rvazarkar's full-sized avatar

Rohan Vazarkar rvazarkar

View GitHub Profile
BlockingCollection<string> collection = new BlockingCollection<string>();
foreach (var string in collection.GetConsumingEnumerable()){
DoSomething(string);
}
public SearchRequest GetSearchRequest(string filter, SearchScope scope, string[] attribs, string domainName = null, string adsPath = null)
{
Domain targetDomain;
try
{
targetDomain = GetDomain(domainName);
}
catch
{
return null;
╔═══════════════════╦═══════════════════════╦══════════════════════╗
║ Collection Method ║ Old Ingestor ║ New Ingestor ║
╠═══════════════════╬═══════════════════════╬══════════════════════╣
║ Group ║ 1 minute 10 seconds ║ 19 seconds ║
║ LocalGroup ║ 29 minutes 57 seconds ║ 6 minutes 21 seconds ║
║ Session ║ 29 minutes 1 second ║ 5 minutes 36 seconds ║
║ ACL ║ 10 minutes 20 seconds ║ 37 seconds ║
╚═══════════════════╩═══════════════════════╩══════════════════════╝
╔══════════════════════╦═══════════════════════╦═════════════╦════════════════════════════════════════════════════════════════════════╗
║ Objects in Domain ║ Time Taken ║ Cache Built ║ Other Comments ║
╠══════════════════════╬═══════════════════════╬═════════════╬════════════════════════════════════════════════════════════════════════╣
║ ~35000 ║ 25 minutes 34 seconds ║ No ║ ║
║ ~3000 ║ 30 seconds ║ No ║ Enumeration over VPN ║
║ ~370000 (not a typo) ║ 9 hours 42 minutes ║ No ║ Enumeration over VPN. Powershell ingestor never finished after 3 days ║
║ ~130000 ║ 40 minutes ║ No ║ ║
║ ~40500 ║ 10 minutes ║ No ║ Old inges
import requests
from bs4 import BeautifulSoup
import re
import sys
if (len(sys.argv) < 2):
print 'Usage:'
print 'python arinScraper.py "target"'
sys.exit()