mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
test: support bypass CSRF
This commit is contained in:
@@ -80,6 +80,7 @@ public class AntSwordManager {
|
||||
manager.setEntrypoint(entrypoint);
|
||||
Map<String, String> headers = new HashMap<>(16);
|
||||
headers.put("Content-Type", "application/x-www-form-urlencoded");
|
||||
headers.put("Referer", entrypoint);
|
||||
headers.putAll(this.headers);
|
||||
manager.setHeaders(headers);
|
||||
return manager;
|
||||
|
||||
@@ -171,6 +171,7 @@ public class BehinderManager {
|
||||
headers.put("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0");
|
||||
headers.put("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
|
||||
headers.put("Accept-Language", "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2");
|
||||
headers.put("Referer", entrypoint);
|
||||
headers.putAll(this.headers);
|
||||
manager.setHeaders(headers);
|
||||
return manager;
|
||||
|
||||
@@ -303,6 +303,7 @@ public class GodzillaManager implements Closeable {
|
||||
headers.put("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0");
|
||||
headers.put("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
|
||||
headers.put("Accept-Language", "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2");
|
||||
headers.put("Referer", entrypoint);
|
||||
headers.putAll(this.headers);
|
||||
manager.setHeaders(headers);
|
||||
if (entrypoint.startsWith("http")) {
|
||||
|
||||
Reference in New Issue
Block a user