Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 456

Need help (Regex / Notepad)

by Audacity - 08 September, 2020 - 09:22 AM
This post is by a banned member (Audacity) - Unhide
Audacity  
Godlike
923
Posts
360
Threads
4 Years of service
#1
Hello,

I have a database that contains USER: PASS lines, and I want to delete every line that has a password containing less than 8 characters.
If anyone can help, I'd appreciate it a lot.

Have a good day Pepelove
[Image: Audacity-Signature.gif]
Click on the picture above to get to the shop. One chance in a lifetime.

[Image: Signature.gif]
This post is by a banned member (Syncat) - Unhide
Syncat  
Heaven
3.097
Posts
833
Threads
4 Years of service
#2
pm @NIGGER he will help
 
This post is by a banned member (Sango) - Unhide
Sango  
Heaven
4.646
Posts
1.078
Threads
4 Years of service
#3
this should match any that have 7 or less character passwords
Code:
^.*?:.{0,7}$
This post is by a banned member (ebp) - Unhide
This post is by a banned member (Audacity) - Unhide
Audacity  
Godlike
923
Posts
360
Threads
4 Years of service
#5
(This post was last modified: 09 September, 2020 - 01:13 PM by Audacity.)
(08 September, 2020 - 09:39 AM)ebp Wrote: Show More
(08 September, 2020 - 09:22 AM)Audacity Wrote: Show More
Hello,

I have a database that contains USER: PASS lines, and I want to delete every line that has a password containing less than 8 characters.
If anyone can help, I'd appreciate it a lot.

Have a good day Pepelove
Code:
//pseduocode https://en.wikipedia.org/wiki/Pseudocode
for (line in file) {
    pass_length = line.split(":")[1]
    if (len(pas_length) > 8){
         save(line)
    }
}
shouldn't be to hard, if it wasn't so late and you actually included sample data I would have written it all out, send me a pm if its not finished by tmrw and ill help

Thank you very much sir Pepelove

(08 September, 2020 - 09:37 AM)Sango Wrote: Show More
this should match any that have 7 or less character passwords
Code:
^.*?:.{0,7}$

Much love <3 :caty:
[Image: Audacity-Signature.gif]
Click on the picture above to get to the shop. One chance in a lifetime.

[Image: Signature.gif]
This post is by a banned member (playweb) - Unhide
playweb  
Registered
3
Posts
0
Threads
3 Years of service
#6
Notepad++ with Regex:
1. Menu: Search -> Replace...
2. Click tab 'Mark'
3. Select Search Mode: Regular expression
4. Paste into 'Find what': .+?:[\sa-zA-Z0-9_]{1,7}$
5. Enable checkbox 'Bookmark line'
6. Click 'Mark All'
7. Menu: Search -> Bookmark -> Remove Bookmarked Lines
Done!

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)