What are some commonly used python libraries for hacking? – Digitalmunition

Home Forums What are some commonly used python libraries for hacking?

This topic contains 1 reply, has 2 voices, and was last updated by  ThreshingBee 1 month, 3 weeks ago.

  • Author
  • #367329


    Hey guys,

    Just wanted to get your inputs on this. Yes, I already googled this question. I am posting here to get your inputs.

    Also, how can I see the details of a library? For instance, where can I see the details of the Request library?

    Edit: I want to change my question to:

    What python library do you love the most? Why?

  • #367336



  • #367337


    A mix of hashlib (hashing stuff or cracking hashes), pandas (formatting/processing data) subprocess (calling commands), re (regex stuff), argparse (for passing args into the script from terminal), beautifulsoup (occasionally for grabbing down webpage data)

  • #367338


    I’ve found selenium to be useful.

  • #367339


    Seriously, it’s like kali linux over and over again… Tools are tools, every dependency, every default method, use what you know, learn what you don’t.
    I love mitmproxy btw c:

  • #367334


    Since you rephrased the question let me suggest a few I use all the time (but I’m a blue team professional):

    – scapy
    – xonsh
    – rich
    – pwntools
    – mitmproxy
    – ciphey
    – shiv
    – httpx

    Xonsh is life changing.

  • #367335


    Recently used [Scapy](https://scapy.net/) during a pentest to create custom packets to test how a device responded. Can’t say I enjoyed my time with it nor was the documentation very good, but it worked for what we needed.

  • #367332


    Socket is the only thing I use for “hack” per say

  • #367333


    impacket is probably the most powerful one for windows domain env.

  • #367331

  • #367330


    The topics you want are Python for Network Engineers, Python for Network Automation, etc. Here is one I’ve seen before:

    [Top 5 Python Libraries for Network Automation](https://www.youtube.com/watch?v=x0yD5pEZ_-g)

    But, generally, my main suggestion is don’t “hey Google what’s the best Python for hacking”, it’s to learn what actually needs done and then track what’s needed.

    Another thing is when a video like that describes something being an abstraction layer on another library (Netmiko on Paramiko), also research the latter for cases where it’s direct use could be more beneficial.

You must be logged in to reply to this topic.