186
66
u/ZIP3KS Dec 03 '19
Can I see a GitHub or something?
67
u/pyexpert Dec 03 '19
Yes tomorrow i will put
12
16
2
0
0
u/KittenFriedRice Dec 03 '19
!remindme 1 day
→ More replies (1)5
u/RemindMeBot Dec 03 '19 edited Dec 04 '19
I will be messaging you in 6 hours on 2019-12-04 19:45:02 UTC to remind you of this link
100 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback → More replies (1)1
1
1
1
1
-1
1
1
1
1
1
1
1
-2
-2
-2
-2
-2
0
-2
-2
-2
-3
0
0
0
-1
-1
-1
-1
-1
-4
-4
-4
-4
-4
-4
-4
-3
-3
-3
-3
-2
-2
-2
-2
-2
-3
0
0
0
-4
-4
-4
-1
0
0
27
1
1
-5
-5
0
-2
28
283
u/tman5400 Dec 03 '19
The flashing text is a cool extra touch
70
u/Wilfred-kun Dec 03 '19
It goes on even after the script finishes, too. How even?
4
116
u/tman5400 Dec 03 '19
I've seen that before, it's the termcolor module
from termcolor import colored, cprint cprint('Cracking, 'green', attrs=['blink'])46
u/frenchytrendy Dec 03 '19
It's the terminal that does that. https://en.m.wikipedia.org/wiki/ANSI_escape_code There is some interesting ones but sadly some are not supported anymore :-/
15
Dec 04 '19
Hi, maintainer of Chalk here. Most of them were never supported outside of just a few terminals. Blink isn't implemented as much anymore, either.
12
Dec 03 '19
OP should add a line that changes the text back to solid white or whatever you prefer, after the key is “cracked”.
7
17
6
u/That_Pregnant_Alien Dec 03 '19
How did you do it?
12
u/pyexpert Dec 03 '19
Would you like to see the source code?
8
u/That_Pregnant_Alien Dec 03 '19
Of course! I am new to python, so I am amazed by this kind of things.
14
u/pyexpert Dec 03 '19
Alright tomorrow i will put it on github n put the link here
2
→ More replies (5)1
2
Dec 03 '19
!remindme 30 minutes
11
1
u/RemindMeBot Dec 03 '19 edited Dec 03 '19
I will be messaging you in 13 minutes on 2019-12-03 19:42:06 UTC to remind you of this link
1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback 4
3
Dec 03 '19
he wrote a cracker, don't you see? ;)
0
u/That_Pregnant_Alien Dec 03 '19
Yes, I can. :)
3
Dec 03 '19
As to answer it seriously, there are probably packages that make it easier, but you can use ANSI Codes.
2
33
u/KimPeek Dec 03 '19
This subreddit is clearly popular to goldfish with memories shorter than a single day.
10
5
u/ahmedmokhles Dec 03 '19
I saw in the comments that you will post the code tomorrow, but I'll probably forget to check. Would you care to dm me when you post the code? I'd really appreciate that. Very cool btw.
3
u/pyexpert Dec 04 '19
1
1
3
Dec 03 '19
Use remindmebot, it's pretty useful
6
u/ahmedmokhles Dec 03 '19
Oh? How do I summon it?
1
47
1
u/pyexpert Dec 04 '19
Here is the github repository of my code https://github.com/bagherip/hack-like-print
10
u/yvrelna Dec 03 '19 edited Dec 03 '19
The amount of people asking remindme bot to get their mind blown here just tells me that a lot of people should be reading their terminal manuals: http://www.termsys.demon.co.uk/vtansi.htm
This is a pretty straightforward application of save cursor (\033[s) and unsave cursor escape code (\033[u), and blink character style (\033[5m).
And the number of people thinking that this is how real password cracking works (as opposed to Hollywood cracking) worries me even more.
10
1
3
1
u/DatBoi_BP Dec 03 '19
I don't get what I'm looking at. Is this supposedly cracking the su password? If so, how does it know 1) the password is n characters long, and 2) that the first (n–1) characters are correct before finding the nth and successfully cracking the password?
8
u/lethenarl Dec 03 '19
it's not really cracking anything.. just some random stuff with visual.
3
u/DatBoi_BP Dec 03 '19
Oh it's all for looks to mess with people?
4
2
2
1
1
1
1
u/log_2 Dec 03 '19
Oh I love these in movies. I get to explain to my poor patient wife why it doesn't work that way in reality.
1
1
1
1
1
1
1
Dec 04 '19
So the only type of hack I can think of that renders one character at a time would be a timing attack. I think about this a lot when I see stuff like this on tv.
1
Dec 04 '19
Are there any free tutorials for python 3? I generally use the original but it seems to be becoming redundant
1
Dec 06 '19
Newb here. So when I type in the wrong password more than three times the account gets locked. Why doesnt this happen here?
1
1
1
1
0
u/o5a Dec 04 '19
There was a post not long ago on the same topic ("cracking" visualization) https://www.reddit.com/r/Python/comments/dyc4ce/i_brute_forced_hello_world_code_and_reasons_in/
with more different examples in comments:
1
u/pyexpert Dec 04 '19
I see, but there I wouldn't consider those codes as python script since they run bash commands over python. In my code i didn't even import the sys library
1
u/o5a Dec 04 '19
For Python3
sysis not needed also, I mentioned that in second comment there. But sure, I didn't say it's the only way to do it, just same topic.
-1
-1
-1
-1
-3
-3
-3
-4
-4
-2
-2
-2
-5
-3
-1
u/scientz Dec 04 '19
Im waiting for the day when people posting their cool snippets here will figure out you can actually record video and take screenshots of your computer WITH your computer.
255
u/LessLikeYou Dec 03 '19
Now you just need to create a GUI in visual basic to find the killer's IP address.