|
@@ -1,15 +1,23 @@
|
|
|
package QuickVerifyCrap;
|
|
|
|
|
|
+import org.openqa.selenium.By;
|
|
|
+import org.openqa.selenium.WebDriver;
|
|
|
+import org.openqa.selenium.WebElement;
|
|
|
+import org.openqa.selenium.firefox.FirefoxDriver;
|
|
|
+
|
|
|
import java.io.*;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
+import java.time.Duration;
|
|
|
|
|
|
public class ChaosPostSpammer
|
|
|
{
|
|
|
public static void main(String[] args) throws Exception
|
|
|
{
|
|
|
- BufferedReader r = new BufferedReader(new FileReader("/home/tgoerner/code/38c3spam.lst"));
|
|
|
- PrintWriter w = new PrintWriter(new FileWriter("/home/tgoerner/code/38c3spam.sh"));
|
|
|
+ BufferedReader r = new BufferedReader(new FileReader("C:\\lmaa\\38c3spam.lst"));
|
|
|
+ WebDriver driver = new FirefoxDriver();
|
|
|
+ PrintWriter w = new PrintWriter(new FileWriter("C:\\lmaa\\38c3spam.sh"));
|
|
|
+
|
|
|
w.println("#!/bin/bash");
|
|
|
String line = r.readLine();
|
|
|
while(line !=null)
|
|
@@ -22,15 +30,38 @@ public class ChaosPostSpammer
|
|
|
linesplitted[i]=linesplitted[i].substring(0,20);
|
|
|
}
|
|
|
}
|
|
|
- line = String.join("\r\n",linesplitted);
|
|
|
-
|
|
|
- String spamtemplate = "curl 'https://office.c3post.de/' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Origin: https://office.c3post.de' -H 'Connection: keep-alive' -H 'Referer: https://office.c3post.de/' -H 'Cookie: session=eyJfZnJlc2giOmZhbHNlLCJjc3JmX3Rva2VuIjoiMmU4MzFmMzZjYjdhNzUwMzg1MGY3MmM0OWRiMzVjYTg5N2Q0MGE2YiJ9.Z2miJw.R0933HCAUWSk3VdhqzKMPJk0b-o' -H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: same-origin' -H 'Sec-Fetch-User: ?1' -H 'Priority: u=0, i' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' --data-raw 'csrf_token=IjJlODMxZjM2Y2I3YTc1MDM4NTBmNzJjNDlkYjM1Y2E4OTdkNDBhNmIi.Z2miJw.9wTZSC--9gRoBPbMSFFbXb7pdWY&from_event_id=18&to_event_id=18&postcard_id=-1&sender=Murphy%27s%0D%0ASabotageservice&receiver="
|
|
|
- + URLEncoder.encode(line, StandardCharsets.UTF_8)
|
|
|
- +"&message=Murphy%27s+Sabotageservice%0D%0AWir+funken+dazwischen%2C+verpfuschen%2C+versauen+und+grillen+ihre+Technik%21%0D%0ABeauftragung+erfolgt+unaufgefordert+selbstst%C3%A4ndig.%0D%0A%0D%0AWe+sabotage%2C+mess+up%2C+cook+and+burninate+your+tech%21%0D%0AWork+is+scheduled+unannounced.&check=y'";
|
|
|
- w.println(spamtemplate);
|
|
|
+ line = String.join("\n",linesplitted);
|
|
|
+ driver.get("https://office.c3post.de/");
|
|
|
+ driver.manage().timeouts().implicitlyWait(Duration.ofMillis(2500));
|
|
|
+
|
|
|
+ WebElement sender = driver.findElement(By.id("sender"));
|
|
|
+ WebElement rcpt = driver.findElement(By.id("receiver"));
|
|
|
+ WebElement content = driver.findElement(By.id("message"));
|
|
|
+ WebElement checkbox = driver.findElement(By.id("check"));
|
|
|
+ WebElement submit = driver.findElement(By.xpath("/html/body/div[2]/div/div[2]/form"));
|
|
|
+
|
|
|
+ sender.sendKeys("Murphy's\n" +
|
|
|
+ "Sabotageservice");
|
|
|
+ rcpt.sendKeys(line);
|
|
|
+ content.sendKeys("Murphy's Sabotageservice\n" +
|
|
|
+ "Wir funken dazwischen, verpfuschen, versauen und grillen ihre Technik!\n" +
|
|
|
+ "Beauftragung erfolgt unaufgefordert selbstständig.\n" +
|
|
|
+ "\n" +
|
|
|
+ "We sabotage, mess up, cook and burninate your tech!\n" +
|
|
|
+ "Work is scheduled unannounced.");
|
|
|
+ checkbox.click();
|
|
|
+ Thread.sleep(2500);
|
|
|
+ submit.submit();
|
|
|
+ Thread.sleep(2500);
|
|
|
+ //String spamtemplate = "curl 'https://office.c3post.de/' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Origin: https://office.c3post.de' -H 'Connection: keep-alive' -H 'Referer: https://office.c3post.de/' -H 'Cookie: session=eyJfZnJlc2giOmZhbHNlLCJjc3JmX3Rva2VuIjoiMmU4MzFmMzZjYjdhNzUwMzg1MGY3MmM0OWRiMzVjYTg5N2Q0MGE2YiJ9.Z2miJw.R0933HCAUWSk3VdhqzKMPJk0b-o' -H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: same-origin' -H 'Sec-Fetch-User: ?1' -H 'Priority: u=0, i' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' --data-raw 'csrf_token=IjJlODMxZjM2Y2I3YTc1MDM4NTBmNzJjNDlkYjM1Y2E4OTdkNDBhNmIi.Z2miJw.9wTZSC--9gRoBPbMSFFbXb7pdWY&from_event_id=18&to_event_id=18&postcard_id=-1&sender=Murphy%27s%0D%0ASabotageservice&receiver="
|
|
|
+ // + URLEncoder.encode(line, StandardCharsets.UTF_8)
|
|
|
+ // +"&message=Murphy%27s+Sabotageservice%0D%0AWir+funken+dazwischen%2C+verpfuschen%2C+versauen+und+grillen+ihre+Technik%21%0D%0ABeauftragung+erfolgt+unaufgefordert+selbstst%C3%A4ndig.%0D%0A%0D%0AWe+sabotage%2C+mess+up%2C+cook+and+burninate+your+tech%21%0D%0AWork+is+scheduled+unannounced.&check=y'";
|
|
|
+ //w.println(spamtemplate);
|
|
|
+
|
|
|
|
|
|
line=r.readLine();
|
|
|
}
|
|
|
w.close();
|
|
|
+ driver.quit();
|
|
|
}
|
|
|
}
|