Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Last active January 12, 2019 10:12
Show Gist options
  • Save Alex4386/921a3e0e909ca847de06973027464ba0 to your computer and use it in GitHub Desktop.
Save Alex4386/921a3e0e909ca847de06973027464ba0 to your computer and use it in GitHub Desktop.
var danalbabo = new XMLHttpRequest();
danalbabo.open("POST", "http://otmsg.kr/send.php");
danalbabo.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
danalbabo.addEventListener("load", function() {
console.log(danalbabo.response.match(/http:\/\/otmsg.kr\/read.php\?no\=([A-Za-z0-9]+)/gm)[0]);
});
danalbabo.send("message="+encodeURIComponent("NOPE SHIT"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment