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



   487

CLOSE CLOSE

by Audacity - 08 September, 2020 - 09:22 AM
This post is by a banned member (Audacity) - Unhide
Audacity  
Godlike
525
Posts
201
Threads
5 Years of service
#1
(This post was last modified: 12 April, 2025 - 01:16 AM by Audacity. Edited 1 time in total.)
CLOSE CLOSE[Image: pepelove.png]
[Image: y1SoGfC.gif]
This post is by a banned member (Syncat) - Unhide
This post is by a banned member (Sango) - Unhide
Sango  
Heaven
4.660
Posts
1.085
Threads
6 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
525
Posts
201
Threads
5 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: y1SoGfC.gif]
This post is by a banned member (playweb) - Unhide
playweb  
Registered
4
Posts
0
Threads
5 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)