Questions tagged [hacker2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
291 views

About the 'crack.c' part of the second hacker edition pset, what is really expected from us? (and a part about submitting)

I'm part of CS50x and I've made a code that would check every single possibility for a password of length 8 or less, but the total number of possibilities here is 96^8, so 7,213,895,789,838,336 ...
0
votes
1answer
101 views

( pset2.hacker_edtiion.initials.c ) check50 problem?

check50 says i have an error but i have no idea why it is saying that, when i run the program with the same input as check50 the output is correct. Any ideas ? code #include <stdio.h> #include ...
0
votes
1answer
88 views

hacker2 (where to start)

I have done pset1,hacker1 and pset2. now i am stuck on hacker2. I dont even know from where to start,what basic knowledge i should get first to solve this problem. As i am beginner to programming and ...
0
votes
0answers
123 views

Is there a better way to implement hacker2-initials?

for hacker2 initials, I can get the right answer, but I want to know is there any other way that works more efficiently? Thanks!
0
votes
0answers
238 views

crack.c brute force - optimization needed!

I have written a recursive algorithm that should break the encryption, although to do so, it creates a file for each possible size of a string (8 is max). After it depletes the 1 size combos, it ...
0
votes
1answer
743 views

Pset2 Hacker Edition- Crack.c

I have a function that looks at a file of common passwords to see if any match the given encrypted password. If the password is in the set of common passwords, the program works, but if not I get an ...
1
vote
1answer
4k views

string comparison & crack.c

I've been working on the pset2 hacker problem and decided to decompose a problem by creating subtasks. Anyway, the first part was to simply compare two crypted strings (at the moment, just one letter ...
1
vote
0answers
399 views

Hacker2 dictionary for crack

I want to write a program crack.c for hacker2, but I can't find a dictionary for it. In the task it is recommended to check /usr/share/dict/words, but there is no such directory in my application.
1
vote
1answer
273 views

Reading a line from a file

I am doing pset2 hacker edition. I am trying to read a line of string from "/usr/share/dict/words" as per pset specification using fgets() function but instead of reading the full line it is only ...
0
votes
1answer
1k views

(Hacker2) Why am I getting a seg fault here from fgets?

I'm certain that the error is from fgets. The dictionary I'm using for this pset is preprocessed(?) so that all the words are ≤ 8. I had a segmentation fault earlier with copying the first 2 ...
2
votes
1answer
2k views

Passwords Et Cetera, Problem Set 2: Crypto. Walkthrough

I'm wondering how can I do this pset without doing the fist thing that comes to mind when reading this pset. From Itsa Mario to this there is a really big jump. Please talk me about crypt and file I/O ...
2
votes
1answer
955 views

What's the purpose of the 'salt' string? Isn't it contained in the hashed string anyway?

When checking the manual entry for man crypt, I read: The returned value points to the encrypted password, a series of 13 printable ASCII characters (the first two characters represent the salt ...
2
votes
1answer
1k views

Hacker2, Crack: Optimisations

I'm busy with the crack program for the hacker 2 assignment. I wrote a dictionary attack which works well for some of the passwords. I also wrote a brute force attack for the other passwords that the ...