Page 1 of 3 123 LastLast
Results 1 to 25 of 69

Thread: plain text

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned
    Join Date: Oct:2001
    Location: , -5
    Posts: 2,637

    plain text

    , wannabe cracker , . , , , plain text.

    5- - . plain text , , O(96^n). - , - , O(n), .

    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);
    }
    , plain text . :
    Code:
    $ crack abc
    The password is:abc
    !
    Last edited by exabyte; 7th January 2009 at 12:11. Reason: , !

  2. #2
    relative dude Skydive's Avatar
    Join Date: Nov:2002
    Location: /
    Posts: 2,863
    !

  3. #3
    Prolemuris
    Join Date: Oct:2006
    Location: Varna
    Posts: 4,296
    , , .

  4. #4
    nomatter's Avatar
    Join Date: May:2002
    Location:
    Posts: 2,073
    @vbdasc ?
    HOSTEL part II
    The hell is back on Earth.
    http://www.momchil.eu

  5. #5
    Prolemuris
    Join Date: Oct:2006
    Location: Varna
    Posts: 4,296
    ,

  6. #6
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    . .
    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|

  7. #7
    Banned
    Join Date: Oct:2001
    Location: , -5
    Posts: 2,637
    Quote Originally Posted by Bombera View Post
    . .
    , , .

  8. #8
    Registered User
    Join Date: Jan:2009
    Location: unas
    Posts: 2
    , - , .... !@#_)) :-)
    Last edited by delian; 7th January 2009 at 16:59. Reason:

  9. #9
    Prolemuris
    Join Date: Oct:2006
    Location: Varna
    Posts: 4,296
    , CUDA . Larrabee

  10. #10
    Registered User vegasis's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 1,156
    Quote Originally Posted by vbdasc View Post
    , CUDA . Larrabee
    GPU , .GPU "" . .

  11. #11
    Prolemuris
    Join Date: Oct:2006
    Location: Varna
    Posts: 4,296
    Quote Originally Posted by vegasis View Post
    GPU , .GPU "" . .
    GPU-,

  12. #12
    Registered User vegasis's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 1,156
    Quote Originally Posted by vbdasc View Post
    GPU-,
    "" .
    . .
    ( ), , .
    , .

  13. #13
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , .
    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|

  14. #14
    The Conquerer I Be RazorJack's Avatar
    Join Date: Jul:2001
    Location:
    Posts: 3,108

  15. #15
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    Quote Originally Posted by RazorJack View Post
    , Wine

    EDIT: -
    wordlist level 3 - , discard-.
    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

  16. #16
    The Conquerer I Be RazorJack's Avatar
    Join Date: Jul:2001
    Location:
    Posts: 3,108
    - ... , ?

  17. #17
    Prolemuris
    Join Date: Oct:2006
    Location: Varna
    Posts: 4,296
    , ? , , . . , . , .

    P.S. nVidia/ATI GPU- , Larrabee , n x86 , .

  18. #18
    Registered User vegasis's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 1,156
    Quote Originally Posted by vbdasc View Post
    , ? , , .
    , , . "" . . , step/smoothstep.

    : gpu , VS 1D , PS . ( C++).
    , . , .. .

  19. #19
    Registered User mln's Avatar
    Join Date: Jul:2006
    Location: Varna
    Posts: 100
    |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

  20. #20
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    - / SMP OpenMP. - . BOINC . BOINCstats
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  21. #21
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,388
    ,
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  22. #22
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    Quote Originally Posted by XaMaB View Post
    ,
    .
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  23. #23
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    . 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

  24. #24
    Banned
    Join Date: Oct:2001
    Location: , -5
    Posts: 2,637
    = * /
    = -
    brute force: = i 0 ( )^i

    , -.

    Quote Originally Posted by icaci View Post
    , , 64-, - , ,
    ? ? , 64 , exabyte . . Double .
    Last edited by exabyte; 9th January 2009 at 13:15.

  25. #25
    The Conquerer I Be RazorJack's Avatar
    Join Date: Jul:2001
    Location:
    Posts: 3,108
    Quote Originally Posted by exabyte View Post
    = i 0 ( )^i
    ...

    Quote Originally Posted by icaci
    , ,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |