javascript code for replying
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Anonymous Servers > javascript code for replying




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    javascript code for replying  
Anonyma


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-19-07 06:12 AM

-----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>&nbsp;</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>&nbsp; </p>
<hr>
<p>&nbsp;
<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+oR2mr
WvF5NpqOk5WTuvoAoNl1
QvIlyH4OQWETEsU4LUyNJi/d
=l6Ul
-----END PGP SIGNATURE-----






[ Post a follow-up to this message ]



    Re: javascript code for replying  
Nomen Nescio


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-19-07 06:12 AM

Anonyma wrote:

If anyone actually uses this they're a fool. Your pasting ALL your
headers into a web form and they're being submitted to the site so even
if you use TOR you're not anonymous.



> -----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" 
> 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>&nbsp;</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>&nbsp; </p>
>   <hr>
>   <p>&nbsp;
>   <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+oR2mr
WvF5NpqOk5WTuvoAoNl1
> QvIlyH4OQWETEsU4LUyNJi/d
> =l6Ul
> -----END PGP SIGNATURE-----
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:15 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register