Hello, since Liam is not able to fix this easy security issue we had coded a custom permissions fix, we do not need it anymore cause of NoLagCP.
Source Code:
Compiled JAR: https://nolag.host/static/NoLagSecurity.jar
XenoPanel
Source Code:
Code:
package host.nolag.security;
import java.io.File;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws InterruptedException {
System.out.println("NoLag.host - Read Access Protector");
int count = 0;
while (true) {
count = 0;
File[] files = new File("/home/XenoPanel/").listFiles();
for (File file : files) {
if (file.isDirectory()) {
try {
Runtime.getRuntime().exec("chmod go-rwx " + file.getPath());
count++;
} catch (IOException e) {
System.err.println("Failed to set permissions for file " + file.getPath());
e.printStackTrace();
}
}
}
System.out.println("Secured " + count + " users!");
Thread.sleep(1000 * 60);
}
// chmod go-rwx [usersHomeFolder]
}
}
XenoPanel
