Skip to content

Instantly share code, notes, and snippets.

View pwnfoo's full-sized avatar
🥦
eat your veggies

Sachin Kamath pwnfoo

🥦
eat your veggies
View GitHub Profile
@pwnfoo
pwnfoo / college_list_master.txt
Created January 20, 2017 06:06
Comprehensive list of colleges in India.
collegeList = ["A. D. Patel Institute of Technology",
"A.K.G. Engineering College",
"A.R.J. College of Engineering and Technology",
"ABES Engineering College",
"ACE Engineering College",
"AES American Embassy School",
"AIMIT",
"AIT",
"AMC Engineering College",
"APS College of Engineering",

#Fedora Statistics 2012 - 2016

###Interesting facts:

###Numer of new users per year (1/1/xxxx to 31/12/xxxx) :

2012 - 445 new FAS accounts (On basis of FAS account status)

  • Active FAS Accounts : 442
  • Inactive FAS Accounts : 3
def group_users(self, group_name):
group_json = dict()
account = AccountSystem(username=self.username,
password=self.password)
try:
group_json = account.group_members(group_name)
except AuthError:
print("[*] Invalid Username / Password")
return 1
userlist = [user_desc.values()[0] for user_desc in group_json]
from bs4 import BeautifulSoup
from urllib import urlopen
page = urlopen ('https://fedora-fedmsg.readthedocs.io/en/latest/topics.html')
soup = BeautifulSoup (page.read().decode('ascii', 'ignore'), 'html.parser')
categorylist = list()
for h3 in soup.findAll('h3'):
if len(h3.text.split('.')) > 2 and h3.text.split('.') not in categorylist :
categorylist.append(h3.text.split('.'))
from BeautifulSoup import BeautifulSoup as beatsop
def html_parser(html_data):
html_proc = beatsop(html_data)
password_fields = html_proc.findAll('input', {'type': 'password'})
print('Non-text input values:')
for elem in password_fields:
print elem
<?xml version="1.0"?>
<!DOCTYPE nmaprun>
<?xml-stylesheet href="file:///usr/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
<!-- Nmap 6.47 scan initiated Sun Mar 20 11:15:53 2016 as: nmap -oX samplename.xml scanme.nmap.org -->
<nmaprun scanner="nmap" args="nmap -oX samplename.xml scanme.nmap.org" start="1458452753" startstr="Sun Mar 20 11:15:53 2016" version="6.47" xmloutputversion="1.04">
<scaninfo type="connect" protocol="tcp" numservices="1000" services="1,3-4,6-7,9,13,17,19-26,30,32-33,37,42-43,49,53,70,79-85,88-90,99-100,106,109-111,113,119,125,135,139,143-144,146,161,163,179,199,211-212,222,254-256,259,264,280,301,306,311,340,366,389,406-407,416-417,425,427,443-445,458,464-465,481,497,500,512-515,524,541,543-545,548,554-555,563,587,593,616-617,625,631,636,646,648,666-668,683,687,691,700,705,711,714,720,722,726,749,765,777,783,787,800-801,808,843,873,880,888,898,900-903,911-912,981,987,990,992-993,995,999-1002,1007,1009-1011,1021-1100,1102,1104-1108,1110-1114,1117,1119,1121-1124,1126,1130-1132,1137-1138,11
@pwnfoo
pwnfoo / gpms.py
Last active March 4, 2016 18:41
gpms.py
from requests import session
from bs4 import BeautifulSoup
import urllib, urllib2, cookielib
headmeta = {
'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Origin' : 'http://gpms.amritanet.edu',
'X-DevTools-Emulate-Network-Conditions-Client-Id' : '0DC79D48-6BE3-4C15-A1AC-20B46AA6FA25',
'Upgrade-Insecure-Requests' : '1',
'User-Agent' : 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/47.0.2526.106 Chrome/47.0.2526.106 Safari/537.36',
/*
* Decompiled with CFR 0_110.
*
* Could not load the following classes:
* org.eclipse.swt.events.FocusAdapter
* org.eclipse.swt.events.FocusEvent
* org.eclipse.swt.widgets.Label
* org.eclipse.swt.widgets.Text
* org.eclipse.swt.widgets.Widget
*/
/*
* Decompiled with CFR 0_110.
*
* Could not load the following classes:
* org.eclipse.swt.events.FocusAdapter
* org.eclipse.swt.events.FocusEvent
* org.eclipse.swt.widgets.Label
* org.eclipse.swt.widgets.Text
* org.eclipse.swt.widgets.Widget
*/
/*
* Decompiled with CFR 0_110.
*
* Could not load the following classes:
* org.eclipse.swt.events.SelectionAdapter
* org.eclipse.swt.events.SelectionEvent
* org.eclipse.swt.widgets.Label
*/