Article View: alt.privacy.anon-server
Article #214499javascript code for replying
From: Anonyma
Date: Mon, 19 Feb 2007 03:06
Date: Mon, 19 Feb 2007 03:06
230 lines
7730 bytes
7730 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Maybe this attempt will finally get through. I saw somebody coin the phrase
"wait-and-pray". That's highly appropriate. I have also repeatedly sent
other posts which have not shown up after several hours, with only two
hops.
=========================================
<HTML>
<HEAD><TITLE>Practical-Anon - Parse with JavaScript then Post through
Eelbash</TITLE>
<script>
/*
RegExp is used because:
eol for FF is \n
eol for dreaded IE is \r\n
/i makes the RegExp match case insensitive.
*/
var eol = /\n|\r\n/;
var eol2 = /\n\n|\r\n\r\n/;
var $From = "From: ";
var $MessageID;
var $Subject = "Subject: ";
var $Date = "Date: ";
var $Newsgroups = "Newsgroups: ";
var $MessageID = "Message-ID: ";
var $who = "somebody";
var $date = "some day";
function parse(post_input) {
s = post_input.value;
s_array = s.split(eol2, 1); // get the headers as a string
header_array = s_array[0].split(eol); // get an array of the headers
$body = s.substring(s_array[0].length, s.length); // get the body as a
string
body_array = $body.split(eol); // get the body as an array of lines
(for quoting)
$msg = "\r\n"; // can I get the platform EOL to use here?
for (var i = 0; i < body_array.length; i++) {
$msg += "> " + body_array[i] + "\r\n";
}
// alert(s.length + " " + header_array.length + "\n" + s_array[0]);
// uncomment the above to view the header lines
var ss = "";
for (var i = 0; i < header_array.length; i++) {
$insense = header_array[i].toLowerCase(); // for case insensitive
comparison
if (header_array[i].indexOf($From) == 0) {
ss = header_array[i];
ss = ss.substring($From.length, ss.length);
$who = ss;
}
if ($insense.indexOf($MessageID) == 0) { // only test that is case
insensitive
ss = header_array[i];
ss = ss.substring($MessageID.length, ss.length);
document.anon.refs.value = ss;
}
if (header_array[i].indexOf($Subject) == 0) {
ss = header_array[i];
ss = ss.substring($Subject.length, ss.length);
if (ss.indexOf("Re: ") != 0) {
ss = "Re: " + ss;
}
document.anon.subject.value = ss;
}
if (header_array[i].indexOf($Date) == 0) {
ss = header_array[i];
ss = ss.substring($Date.length, ss.length);
$date = ss;
}
if (header_array[i].indexOf($Newsgroups) == 0) {
ss = header_array[i];
ss = ss.substring($Newsgroups.length, ss.length);
document.anon.tofield.value = ss;
}
}
quoted = "On " + $date + "\r\n";
quoted += $who + " wrote:\r\n";
quoted += $msg;
document.anon.message.value = quoted;
document.anon.fromfield.focus();
// the above line positions you for easy inspection of the data
// but you can change it to--> document.anon.message.focus();
// to put the focus in the message textarea
// etc.
}
function onload() {
document.anon.post_input.focus();
$MessageID = new String("Message-ID: ".toLowerCase());
}
</script>
</HEAD>
<BODY bgcolor="#FFFFFF">
<font face="Arial, Helvetica, sans-serif"><b><font size="-1">The data in
the table
below is what will be posted to Eelbash's W2N. <font size="+1"
color="#804040">USE
TOR!!!</font></font></b></font>
<P>
<!-- need to place three more INPUT fields to match Eel's input pattern:
login server -->
<FORM NAME="anon" ACTION="http://eelbash.yi.org:8080/scriptes/remail.php"
METHOD="POST" >
<table width="11%" border="0" cellspacing="7" cellpadding="7"
bgcolor="#AAFFFF">
<tr>
<td>
<table width="18%" border="0" cellspacing="4" cellpadding="4"
bgcolor="#33FFFF" >
<tr>
<td width="4%">
<div align="right"><b>From:</b> </div>
</td>
<td width="96%"> <font color="#CCCCCC">
<!-- edit the value attribute below, to show your own posting
ID -->
<input type=text size=50 name="fromfield"
value="Practical-Anon <Practical-Anon@here.there>">
</font></td>
</tr>
<tr>
<td width="4%">
<div align="right"><b>Subject:</b></div>
</td>
<td width="96%"><font color="#CCCCCC">
<input type=text size=50 name="subject">
</font></td>
</tr>
<tr>
<td width="4%">
<div align="right"><b>Newsgroups:</b>:</div>
</td>
<td width="96%"> <font color="#CCCCCC">
<input type=text size=72 maxlength=72 name="tofield">
</font></td>
</tr>
<tr>
<td width="4%">
<div align="right"><b>Latency: </b> </div>
</td>
<td width="96%"> <font color="#CCCCCC">
<input type=text size=2 name="latency" value="0">
</font></td>
</tr>
<tr>
<td width="4%">
<div align="right"><b>References:</b></div>
</td>
<td width="96%"> <font color="#CCCCCC">
<input type=text size=88 name="refs">
</font></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<p>
<textarea name="message" rows=15 cols=90 >
</textarea>
</p>
<p>
<input value="Submit" name="submit" type="submit">
<input type=reset name="reset">
</p>
</td>
</tr>
</table>
<p> </p>
<hr>
<p>
<p><b><font face="Arial, Helvetica, sans-serif" size="-1">Paste the
complete
post that you want to reply to, <i>with full headers</i>, below.</font>
</b><br>
<br>
<table width="11%" border="0" cellspacing="7" cellpadding="7"
bgcolor="#FFFFDD">
<tr>
<td><br>
<textarea name="post_input" rows=9 cols=90 />
</textarea>
</td>
</tr>
<tr>
<td>
<input type="button" name="parse_button" value="Parse the Reply
Fields" onClick="parse(this.form.post_input)">
<br>
</td>
</tr>
</table>
<p><BR>
</FORM>
</BODY>
</HTML>
-----BEGIN PGP SIGNATURE-----
Version: N/A
iQA/AwUBRdkCno3GWrfOMwGjEQJD2gCgw2tDTm+oR2mrWvF5NpqOk5WTuvoAoNl1
QvIlyH4OQWETEsU4LUyNJi/d
=l6Ul
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<e9119dbccc3f5fe5ac3a79e6b553ca97@deuxpi.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feed20.multikabel.net!multikabel.net!feed10.multikabel.net!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.wiretrip.org!news.bananasplit.info!mail2news.mixmin.netShow Full Headers
Complete Article Headers
Message-ID: <e9119dbccc3f5fe5ac3a79e6b553ca97@deuxpi.ca> Subject: javascript code for replying Date: Mon, 19 Feb 2007 03:06:37 +0000 From: Anonyma <anon-bounces@deuxpi.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feed20.multikabel.net!multikabel.net!feed10.multikabel.net!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.wiretrip.org!news.bananasplit.info!mail2news.mixmin.net X-Anonymous: yes X-Anon-Help: <http://www.deuxpi.ca/> <mailto:deuxpi-admin@deuxpi.ca> X-Himmel: Practical-Anon <Practical-Anon@here.there> Newsgroups: alt.privacy.anon-server X-Abuse-Contact: abuse@bananasplit.info Lines: 230