Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
comp30023_2019_project-2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weijie Lin
comp30023_2019_project-2
Commits
929056a3
Commit
929056a3
authored
6 years ago
by
weijiel6
Browse files
Options
Downloads
Patches
Plain Diff
find more passwords
parent
b0ea944b
Branches
master
No related tags found
No related merge requests found
Pipeline
#2762
failed
6 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
crack.c
+30
-0
30 additions, 0 deletions
crack.c
out.txt
+8
-0
8 additions, 0 deletions
out.txt
with
38 additions
and
0 deletions
crack.c
+
30
−
0
View file @
929056a3
...
...
@@ -184,6 +184,36 @@ int main( int argc, char **argv )
}
long_guess
[
7
]
=
'\0'
;
char
alpha_guess
[
7
];
int
alpha_secret_num
;
SHA256_CTX
alpha_ctx
;
BYTE
alpha_data
[
SHA256_BLOCK_SIZE
];
for
(
int
i
=
97
;
i
<
124
;
i
++
)
{
for
(
int
j
=
97
;
j
<
124
;
j
++
)
{
for
(
int
l
=
97
;
l
<
124
;
l
++
)
{
for
(
int
k
=
97
;
k
<
124
;
k
++
)
{
for
(
int
n
=
97
;
n
<
124
;
n
++
)
{
for
(
int
m
=
97
;
m
<
124
;
m
++
)
{
sprintf
(
alpha_guess
,
"%c%c%c%c%c%c"
,
i
,
j
,
l
,
k
,
n
,
m
);
//printf("%s\n",guess);
sha256_init
(
&
alpha_ctx
);
sha256_update
(
&
alpha_ctx
,
(
BYTE
*
)
alpha_guess
,
strlen
(
alpha_guess
));
sha256_final
(
&
alpha_ctx
,
alpha_data
);
if
(
check_guess
(
long_secrets
,
alpha_data
,
pwd6_size
)
>
0
)
{
alpha_secret_num
=
check_guess
(
long_secrets
,
alpha_data
,
pwd6_size
);
alpha_secret_num
=
alpha_secret_num
+
10
;
//printf("long secret num should be %d\n", long_secret_num);
printf
(
"%s %d
\n
"
,
alpha_guess
,
alpha_secret_num
);
fprintf
(
fp1
,
"%s %d
\n
"
,
alpha_guess
,
alpha_secret_num
);
}
}
}
}
}
}
}
alpha_guess
[
7
]
=
'\0'
;
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
out.txt
+
8
−
0
View file @
929056a3
...
...
@@ -13,3 +13,11 @@ weij 7
369258 13
379258 12
469258 29
asdzxc 27
fastca 21
kakash 17
newcas 16
oeotak 23
wdovan 20
weijie 19
wicked 30
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment