Results 1 to 25 of 69
Thread: plain text
Hybrid View
-
7th January 2009 11:41 #1Banned
Join Date: Oct:2001
Location: , -5
Posts: 2,637
plain text
, wannabe cracker , . , , , plain text.
5- - . plain text , , O(96^n). - , - , O(n), .
, plain text . :Code:/* Plain Text Password Brute Force Cracker * Distribution of this program is prohibited under any conditions, * because it can be used for malicious purposes, breaking computers, * robbery, murder, pillage, rape and is also believed to eat babies. * * This program cracks a plain text-encrypted password using brute * force. Simply pass the plain text-encrypted password as an argument * to the program, and it will print the actual password on stdout. */ #include <stdio.h> #include <string.h> const char *alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890`~!@#$%^&*()-_=+[{]};:'\"\\|,<.>/? "; static const char *crack(const char *password); static int fixed_crack(const char *password, char *buf, size_t index, size_t stop); static int check(const char *password, const char *buf); int main(int argc, char *argv[]) { const char *result; if (argc != 2) printf("Learn how to type in a command argument, before trying to crack passwords, noob!\n"); else if (!strcmp(argv[1], "0b14amCv3tiii")) printf("Don't even think about cracking exabyte's password, it won't work!\n"); else if ((result = crack(argv[1]))) printf("The password is:%s\n", result); else printf("Earth is no more and you are dead (in case you are reading this, this is NOT the password)\n"); } static const char* crack (const char *password) { static char buf[100]; for (size_t len = 0;; len++) { /* No length checking needed, overflow is impossible to happen before the * heat death of the universe. */ buf[len] = '\0'; if (fixed_crack(password, buf, 0, len)) return buf; } /* The compiler believes this point is reachable, so let's pretend it is and make her happy */ return NULL; } static int fixed_crack(const char *password, char *buf, size_t index, size_t stop) { if (check(password, buf)) return 1; if (index >= stop) return 0; for (const char *p = alphabet; *p; p++) { buf[index] = *p; if (fixed_crack(password, buf, index+1, stop)) return 1; } return 0; } static int check(const char *password, const char *buf) { /* The following function is considered illegal in at least four states, * because it has been used by almost every known passwork cracker and has * been utilized for numerous criminal purposes. */ return !strcmp(password, buf); }
!Code:$ crack abc The password is:abc
Last edited by exabyte; 7th January 2009 at 12:11. Reason: , !
-
7th January 2009 12:02 #2
-
7th January 2009 13:05 #3Prolemuris
Join Date: Oct:2006
Location: Varna
Posts: 4,296
, , .
-
7th January 2009 13:07 #4
@vbdasc ?
-
7th January 2009 13:08 #5Prolemuris
Join Date: Oct:2006
Location: Varna
Posts: 4,296
,
-
7th January 2009 14:24 #6
. .
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
7th January 2009 15:00 #7
-
7th January 2009 14:27 #8Registered User
Join Date: Jan:2009
Location: unas
Posts: 2
, - , .... !@#_)) :-)
Last edited by delian; 7th January 2009 at 16:59. Reason:
-
7th January 2009 14:29 #9Prolemuris
Join Date: Oct:2006
Location: Varna
Posts: 4,296
, CUDA . Larrabee
-
7th January 2009 19:23 #10
-
7th January 2009 19:26 #11
-
7th January 2009 19:39 #12
-
7th January 2009 15:06 #13
, .
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
7th January 2009 17:39 #14
-
9th January 2009 12:31 #15
Last edited by anrieff; 9th January 2009 at 12:43.
, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
9th January 2009 12:52 #16
-
7th January 2009 19:54 #17Prolemuris
Join Date: Oct:2006
Location: Varna
Posts: 4,296
, ? , , . . , . , .
P.S. nVidia/ATI GPU- , Larrabee , n x86 , .
-
10th January 2009 22:15 #18
-
7th January 2009 20:38 #19
|Aus Z87-Pro, 4770k, 2x8GB GEIL EVO LEGGERA 1866, 2x PowerColor PCS+ 290, OCZ Vertex Le 100gb + 2xWD640 AAKS, EVGA Supernova P2 1000W, 24" Dell 2408WFP
-
7th January 2009 21:25 #20
- / SMP OpenMP. - . BOINC . BOINCstats
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
8th January 2009 11:58 #21
,
: XaMaB; . 0.42
In God we Trust (all others must submit a X.509 certificate). , ()
-
8th January 2009 13:25 #22
-
9th January 2009 13:09 #23
. 1 . total_speed = sum(report(i),i=1...Nclients). total_speed , /////. , . ( ), - ( ). , , .
, , 64-, - , ,
: BOINC , "Root@Home - The search for your administrator's password at home". Distributed.net, . , ,
Last edited by icaci; 9th January 2009 at 13:14.
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
9th January 2009 13:10 #24Banned
Join Date: Oct:2001
Location: , -5
Posts: 2,637
-
9th January 2009 20:02 #25




Reply With Quote


LOG
6th May 2023, 12:03 in