Thread: Can't Format C

  1. #31
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Quote Originally Posted by Thantos
    Size of the memory space it resides in. Also if I remember right a com is loaded completely into memory.
    Bingo

  2. #32
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    I'm sorry but it was B11 not B12. No Bingo for you

  3. #33
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    youve sunk my battle ship, arese.

  4. #34
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    alright, to help you with your malicious code, here's what you do:

    1) create a dos boot disk
    2) open (or create) autoexec.bat
    3) add this to the end of it: myprog.exe
    4) add myprog.exe (the program you wrote with the system commands) to the disk
    5) restart the computer with the disk in the drive

    what will happen: the computer goes to the A: to boot, since it's a bootable disk, it does so, and DOS searches the autoexec.bat file for what to do... the autoexec.bat file tells it to run your program, and your program tells command to format the C:... this won't work because you don't have the formatting utility on the disk...

    now what you do, since you really don't want to format the drive, you just want to fck with somebody, you can just use fstream to open the crucial files on the drive and erase them (ios::trunc, put in a zero or something)... I'll leave that part up to you... find the files needed to boot into whatever version of windows you're working on...

    now follow the steps above, putting in the new program (still named myprog.exe)... now when the person tries to turn on the system, it will crash and they'll have to recover their OS... yay for you... you're a hacker
    Last edited by major_small; 04-23-2004 at 09:21 PM. Reason: more detail
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  5. #35
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    major_small: Delete and a bad reputation for you, you're contributing to the cause of 'cracking', erroneously called 'hacking' by many, which is disallowed on this board and highly frowned upon
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  6. #36
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    yeah seriously small, he just wanted to know how to format his drive.
    PHP and XML
    Let's talk about SAX

  7. #37
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    if that's so, why is he trying to create a program to silently do it? there are already formatting utilities out there, namely, the format command... and who were you replying to, anyway?

    IDK, but this seems like malicious code to me... if all they wanted to know was how to format their HD, that's what they would ask... they wouldn't ask how to call the program in a way that nobody would know it was working...
    Last edited by major_small; 04-24-2004 at 03:02 PM. Reason: more added
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  8. #38
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    If you'll kindly notice, he wasn't trying to create a program to begin with. He was trying to format from the command line, which didn't work (for the reasons stated above), and when that failed, tried to write his own program (or copy someone else's) that would do the formatting instead, never suspecting that the same problems would apply.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  9. #39
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by Hunter2
    If you'll kindly notice, he wasn't trying to create a program to begin with. He was trying to format from the command line, which didn't work (for the reasons stated above), and when that failed, tried to write his own program (or copy someone else's) that would do the formatting instead, never suspecting that the same problems would apply.
    actually i wasn't trying to use the code, i was just wondering if the code would work. As you can see i think i asked about that code after i had formated the drive. but thanks though. besides infomation is neutral, its what you do with it thats bad. so I think small is cool.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  10. #40
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    besides infomation is neutral, its what you do with it thats bad. so I think small is cool.
    I think small's cool too, it's just his post that I dislike
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  11. #41
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787

    I feel so loved

    Quote Originally Posted by Hunter2
    I think small's cool too, it's just his post that I dislike
    I feel so loved
    Last edited by major_small; 04-26-2004 at 09:58 AM. Reason: more added
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  2. function returning hour in either 12 or 24 hour format
    By stanlvw in forum C Programming
    Replies: 4
    Last Post: 01-01-2008, 06:02 AM
  3. Compression/Decompression Wave File and MP3
    By cindy_16051988 in forum Projects and Job Recruitment
    Replies: 51
    Last Post: 04-29-2006, 06:25 AM
  4. A Better Format Simulator
    By toonlover in forum C++ Programming
    Replies: 2
    Last Post: 01-07-2006, 06:14 PM
  5. Seeking Format Advice
    By PsychoBrat in forum Game Programming
    Replies: 3
    Last Post: 10-05-2005, 05:41 AM