Skip to content

Commit 562817c

Browse files
committed
v1.17 patch 3
1 parent e31ea30 commit 562817c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

offset.mcscan

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
1
22
0
3-
0
4-
59
3+
20
4+
130

src/com/stupidrepo/mcscanner/MCScanner.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,19 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) {
121121
}
122122
}
123123

124-
for (int i = offsetI; i <= maxRange; ++i) {
124+
int thisOffsetI = offsetI;
125+
int thisOffsetJ = offsetJ;
126+
int thisOffsetK = offsetK;
127+
int thisOffsetL = offsetL;
128+
for (int i = thisOffsetI; i <= maxRange; ++i) {
125129
offsetI = i;
126-
for (int j = offsetJ; j <= 255; ++j) {
130+
for (int j = thisOffsetJ; j <= 255; ++j) {
127131
offsetJ = j;
128-
for (int k = offsetK; k <= 255; ++k) {
132+
for (int k = thisOffsetK; k <= 255; ++k) {
129133
offsetK = k;
130-
for (int l = offsetL; l <= 255; ++l) {
134+
for (int l = thisOffsetL; l <= 255; ++l) {
131135
offsetL = l;
136+
System.out.println(String.format("%d%d%d%d", i, j, k, l));
132137
String ip = i + "." + j + "." + k + "." + l;
133138

134139
ScannerThread scannerThread = new ScannerThread(ip, port, timeout, databaseHandler);

0 commit comments

Comments
 (0)