User Controls
Posts That Were Thanked by Sophie
-
2017-03-04 at 5:44 PM UTC in YO MALICE!!!Pitbull shoulda called himself patball
-
2017-03-04 at 6:09 AM UTC in WATthere are forces at work that are greater than you or I
-
2017-03-04 at 3:31 AM UTC in going to see wavves againi smoked spice in the womb once shamby stuck a spice joint up my moms pussy in her sleep i hit that shit and immediately aborted myself
-
2017-03-02 at 10:01 PM UTC in NSA Public Relations are all about the memes.Those are never cute.
-
2017-03-02 at 5:23 PM UTC in This Is Not a Question, It Is An Answer
-
2017-03-02 at 5:04 AM UTC in Linux Kernel 4.4.0(Generic) Privilege Escalation exploits.Here's a new one(not really though). Not sure if you already knew about it or not.
https://www.exploit-db.com/exploits/41458/
I'm going to install a VM and give it a shot. Then I'm going to to see if I can get it compiled for Android. -
2017-03-02 at 4:43 AM UTC in teh retraded thred herppppp slober fuk glum editshin
Originally posted by cerakote can we have a nsfw containment section please because i couldve got shitcanned for life if i wouldve opened trt anywhere other than siting on the shitter
Very little of this site could be considered SFW and no way in hell am I going to try and enforce that. If you're in a situation where someone can read over your shoulder but not closely enough to read text, then I encourage you to disable image embedding and avatars. -
2017-03-01 at 7:59 AM UTC in Please implement webm, gifv, Gfycat embedsDo it yourself you dumb cuck
https://github.com/RyanJenkins/ISS -
2017-03-01 at 6:48 AM UTC in The niggasin.space gang sign
-
2017-03-01 at 4:35 AM UTC in ATTN: Does anyone care about the modfuckery?
-
2017-02-28 at 3:09 AM UTC in Python Selenium shenanigans.Shutup RisiR.
This is the code that worked for me:
#!/usr/bin/env python2.7
import re
import argparse
import sys
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# Check for args, print logo and usage
if not len(sys.argv[1:]):
print """
__ _ ___
| \ ___ _ _| |_| __|__ _ _ __ _ ___
| |) / _ \ '_| / / _/ _ \ '_/ _` / -_)
|___/\___/_| |_\_\_|\___/_| \__, \___|
|___/
Welcome to DorkForge.
To start using this script please provide one or more command
line arguments and their corresponding value, where applicable.
To display all options available use -h or --help.
Example:
DorkForge.py -h
DorkForge.py -d inurl:show.php?id= --verbose\n"""
sys.exit(0)
# Handle command line arguments
parser = argparse.ArgumentParser(description="Use this script and dorks to find vulnerable web applications.")
group = parser.add_mutually_exclusive_group()
group.add_argument("-d", "--dork", help="specify the dork you wish to use\n")
group.add_argument("-l", "--list", help="specify path to list with dorks\n")
parser.add_argument("-p", "--pages", default=1, type=int, help="specify amount of pages to check\n")
parser.add_argument("-v", "--verbose", help="toggle verbosity\n")
args = parser.parse_args()
dork_list = []
# If list, read item in
if args.list:
try:
with open(args.list, "r") as ins:
for line in ins:
dork_list.append(line)
except IOError:
print "Could not read dork list"
if args.verbose == True:
print "An IO Error was raised with the following error message: "
print "\n", e
else:
dork_list.append(args.dork)
# Dork list processing/searching
def search():
driver = webdriver.Firefox()
link_list = []
for int in range(args.pages):
driver.get("http://google.com")
assert "Google" in driver.title
for items in dork_list:
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys(items)
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.CLASS_NAME, "r")))
links = driver.find_elements_by_xpath("//h3//a[@href]")
for elem in links:
link_list.append(elem.get_attribute("href"))
#try:
# source = driver.page_source()
# handler = open("page_source.html", "rw") # Needs unique names
# handler.write(source)
# handler.close()
#except IOError as e:
# print "Could not write page source"
# if args.verbose == True:
# print "An IO Error was raised with the following error message: "
# print "\n", e
driver.close()
return link_list
# Link list processing
proc_one = search()
for sorted_url in proc_one:
final = []
if "stackoverflow" or "github" not in sorted_url:
final.append(sorted_url)
print final
A few changes, the biggest being the introduction of a wait. There's non-zero time between simulating pressing enter and results being available on the page, so we need to wait for search results to be available by polling. I changed the xpath to find links to get less garbage on the page that isn't results. Also this:
for elem in links:
link_list = []
Empties link_list on every iteration so I brought it up to the top of search() -
2017-02-28 at 1:58 AM UTC in Ashley Judd says Trump winning the election was worse than being raped as a child.I wonder how she'd feel if she found out trump won while being raped
rapeception? -
2017-02-27 at 11:59 AM UTC in ATTN: Lanny.This is only fair if you change "hillary" to "shillary"
-
2017-02-27 at 3:47 AM UTC in I think we may be the Enlightenedclose your fucking tabs you mongolroy
-
2017-02-26 at 9:28 PM UTC in Py fags, I need help...I legit opened leekspin after posting that.
Great minds think aleek -
2017-02-26 at 3:26 PM UTC in the joke threadwhy did my dad run away
because im Bill Krozby' daughter -
2017-02-26 at 2:12 PM UTC in the joke threadScared man, hungry man, Latvian man walk into a bar.
Is same man.
Bar is gulag. -
2017-02-26 at 1:48 PM UTC in the joke threadWhat's better than winning silver in the special olympics?
Winning gold in the special olympics.
What's better than winning gold in the special olympics?
Not being retarded -
2017-02-26 at 1:38 PM UTC in the joke threadWhy did all the kids at Sandy Hook fail their classes?
The walls had more brains than they did -
2017-02-26 at 10:17 AM UTC in to all the cucks calling me a wife beateri dont use any chan besides 4chan and nowadays its pretty much just when i want to beat my meat or when i browse a board related to my interests.
i like NIS because you guys are a community and i know this is just some homo forum on the internet but i feel like this is where i belong
you dudes are alright