Python Forum
Brute force for CTF (easy one)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brute force for CTF (easy one)
#1
Hi Guys !

So I m learing python and I found this website "hackthissite.org" and I decided to make some exercises. One of them was to write a python script that takes a list of passwords from a file and compare it to a password given by the site. Becouse hackthisstie is down , I've randomly chosen a password "maniek". I managed to write the script and it works !! But I want only to see the massage " Password Found : <passw>" and not every try to find it.

I will show you the code :

import time

passw = "maniek" 

with open("wordlist.txt", "r") as inside:
    for line in inside:
        line = line.replace("\n", "")
        line = line.replace("\r", "")
        if line == passw:
            print("Password Found : "+ passw)
        else:
            print("Password not found !")
Sorry for my poor english skills. I want to see only the massage "Pass found : " or if its not in there "Password not found !".

Thank you !
Reply
#2
stupid question sry guys pls delete this ... what a shame ...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Brute force password breaker Truman 7 4,441 Jan-23-2019, 01:00 AM
Last Post: Truman
  Why can't I force an int to be a string? fad3r 4 3,389 Feb-13-2018, 11:17 PM
Last Post: fad3r
  brute force skriff 4 3,864 Sep-12-2017, 06:23 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020