Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
V
Vault Hacking Race
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tammam.alsoleman
Vault Hacking Race
Commits
e3fcabd2
Commit
e3fcabd2
authored
Oct 31, 2025
by
tammam.alsoleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build_AscendingHacker_Class
parent
ae92a071
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
AscendingHackerThread.java
src/AscendingHackerThread.java
+27
-0
No files found.
src/AscendingHackerThread.java
0 → 100644
View file @
e3fcabd2
public
class
AscendingHackerThread
extends
Thread
{
private
Vault
vault
;
public
AscendingHackerThread
(
Vault
vault
)
{
this
.
vault
=
vault
;
// Store the vault reference
this
.
setName
(
"AscendingHacker"
);
// Give this thread a clear name
this
.
setPriority
(
Thread
.
MAX_PRIORITY
);
// Give high priority
}
@Override
public
void
run
()
{
System
.
out
.
println
(
this
.
getName
()
+
" started hacking from 0 to 9999"
);
// Try every number from 0 to 9999
for
(
int
guess
=
0
;
guess
<
10000
;
guess
++)
{
// Check if this guess is correct
if
(
vault
.
isCorrectPassword
(
guess
))
{
System
.
out
.
println
(
this
.
getName
()
+
" cracked the vault! Password: "
+
guess
);
System
.
exit
(
0
);
// End the entire program
}
}
// If we get here, we didn't find the password
System
.
out
.
println
(
this
.
getName
()
+
" finished but didn't find the password!"
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment