Skip to content
forked from Quitten/pyhacks

Python module to ease writing scripts go over big amount of data in order to perform the same actions. A simple preconfigured threads and queue management and more hacking utils

License

Notifications You must be signed in to change notification settings

barakt11/pyhacks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyhacks

Python module to ease writing scripts go over big amount of data in order to perform the same actions. A simple preconfigured threads and queue management and more hacking utils

Will elaborate more when it will get mature enough :)

code example

from pyhacks import Logger, QueueThreads, Exporter, Parser, Net

if __name__ == "__main__":
	def handleItem(item):
		try:
			host = item.get("host")
			item.set("Reply To Ping", net.replyToPing(host))
			item.set("ip", net.resolve(host))
			export.put(item)
		except:
			pass
		return True
	
	net = Net()
	logger = Logger()
	parse = Parser()
	export = Exporter("output.csv")
	
	numbersOfThreads = 1
	x = QueueThreads(handleItem, numbersOfThreads, logger, True)
	
	hosts = parse.csv("ips.csv")
	for host in hosts:
		x.put(host)
		
	x.finish()
	export.finish()
    

About

Python module to ease writing scripts go over big amount of data in order to perform the same actions. A simple preconfigured threads and queue management and more hacking utils

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%