From 562817c02b8045b7eae03ae11d138203e2869b43 Mon Sep 17 00:00:00 2001 From: Bradlee Barnes <69256931+StupidRepo@users.noreply.github.com> Date: Wed, 19 Jul 2023 15:20:48 +0100 Subject: [PATCH] v1.17 patch 3 --- offset.mcscan | 4 ++-- src/com/stupidrepo/mcscanner/MCScanner.java | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/offset.mcscan b/offset.mcscan index 3f8692c..70ac528 100644 --- a/offset.mcscan +++ b/offset.mcscan @@ -1,4 +1,4 @@ 1 0 -0 -59 \ No newline at end of file +20 +130 \ No newline at end of file diff --git a/src/com/stupidrepo/mcscanner/MCScanner.java b/src/com/stupidrepo/mcscanner/MCScanner.java index e6e9c4b..fc54fa1 100644 --- a/src/com/stupidrepo/mcscanner/MCScanner.java +++ b/src/com/stupidrepo/mcscanner/MCScanner.java @@ -121,14 +121,19 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) { } } - for (int i = offsetI; i <= maxRange; ++i) { + int thisOffsetI = offsetI; + int thisOffsetJ = offsetJ; + int thisOffsetK = offsetK; + int thisOffsetL = offsetL; + for (int i = thisOffsetI; i <= maxRange; ++i) { offsetI = i; - for (int j = offsetJ; j <= 255; ++j) { + for (int j = thisOffsetJ; j <= 255; ++j) { offsetJ = j; - for (int k = offsetK; k <= 255; ++k) { + for (int k = thisOffsetK; k <= 255; ++k) { offsetK = k; - for (int l = offsetL; l <= 255; ++l) { + for (int l = thisOffsetL; l <= 255; ++l) { offsetL = l; + System.out.println(String.format("%d%d%d%d", i, j, k, l)); String ip = i + "." + j + "." + k + "." + l; ScannerThread scannerThread = new ScannerThread(ip, port, timeout, databaseHandler);