Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

A few simple scripts for pentest with Python

This project includes a number of simple, useful, and informative scripts that you can use.
For those who want to learn how to test penetration with Python, it can be very useful.
see it in github:

github.com/Naategh/PyCk/
Hey man nice scripts just a few tips id suggest if you wanted to improve them.

some scripts have "file.read().splitlines()" when instead it could just be file.readlines()

Some scripts like the admin finder say get(link) which is fine but if the page holds(which iv had before) your script will just get stuck and wait. i would add timeout=2 for safety. this way the max it will hold is 2 seconds.

I would also look into using threads as this will speed things up a lot more. instead of testing one admin page at a time you could use 20 threads and do 20 at once. Only really useful on networking tools though because you are waiting on the network delay.

But in general nice stuff man!
(Dec 16, 2018 10:22 AM)4ground_daemon Wrote:  Hey man nice scripts just a few tips id suggest if you wanted to improve them.

some scripts have "file.read().splitlines()" when instead it could just be file.readlines()

Some scripts like the admin finder say get(link) which is fine but if the page holds(which iv had before) your script will just get stuck and wait. i would add timeout=2 for safety. this way the max it will hold is 2 seconds.

I would also look into using threads as this will speed things up a lot more. instead of testing one admin page at a time you could use 20 threads and do 20 at once. Only really useful on networking tools though because you are waiting on the network delay.

But in general nice stuff man!

Thank's alot, bro.
I will certainly apply these changes in the next version.
(Dec 17, 2018 03:07 AM)sam021 Wrote:  Thank's alot, bro.
I will certainly apply these changes in the next version.

really liked the email bomber, had to configure my gmail to allow it access but otherwise rlly good. thanks!
(Dec 22, 2018 06:51 PM)notjapanese Wrote:  really liked the email bomber, had to configure my gmail to allow it access but otherwise rlly good. thanks!

I'm glad to be useful to you ✌
(Dec 16, 2018 10:22 AM)4ground_daemon Wrote:  Hey man nice scripts just a few tips id suggest if you wanted to improve them.

some scripts have "file.read().splitlines()" when instead it could just be file.readlines()

Some scripts like the admin finder say get(link) which is fine but if the page holds(which iv had before) your script will just get stuck and wait. i would add timeout=2 for safety. this way the max it will hold is 2 seconds.

I would also look into using threads as this will speed things up a lot more. instead of testing one admin page at a time you could use 20 threads and do 20 at once. Only really useful on networking tools though because you are waiting on the network delay.

But in general nice stuff man!

The method he is using with file.read().splitlines() actually has a very good use case when you need to omit newline and carriage return characters. readlines() will leave them in by default and tends to leave them as trailing characters that can screw stuff up. Just thought you'd find that worth knowing. :)
Malware Dev & Grey Hat available for contract work. DM if you need me.

OSCP, OSCE, OSEE, OSWE, OSWP, CEH, CISSP

Yeah, I've been around a while
oh thanks for letting me know that, i use to always use line.strip() instead. Nice that everyone is sharing knowledge for once rather in being abusive haha


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by LifeAug 10, 2020 09:42 PM 0 168 Aug 10, 2020 09:42 PM
Last Post: Life
[Python] by DawnfangMay 14, 2020 01:27 AM 3 235 May 14, 2020 01:27 AM
Last Post: D34r_Us3rn4m3