Viewing file: wheel.php (29.88 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// PROJECT HONEY POT ADDRESS DISTRIBUTION SCRIPT // For more information visit: http://www.projecthoneypot.org/ // Copyright (C) 2004, Unspam, LLC // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA // 02111-1307 USA // // If you choose to modify or redistribute the software, you must // completely disconnect it from the Project Honey Pot Service, as // specified under the Terms of Service Use. These terms are available // here: // // http://www.projecthoneypot.org/terms_of_service_use.php // // The required modification to disconnect the software from the // Project Honey Pot Service is explained in the comments below. To find the // instructions, search for: *** DISCONNECT INSTRUCTIONS *** // // Generated On: Sat, 05 May 2007 01:18:29 -0400 // For Domain: www.gaiser.org // //
// *** DISCONNECT INSTRUCTIONS *** // // You are free to modify or redistribute this software. However, if // you do so you must disconnect it from the Project Honey Pot Service. // To do this, you must delete the lines of code below located between the // *** START CUT HERE *** and *** FINISH CUT HERE *** comments. Under the // Terms of Service Use that you agreed to before downloading this software, // you may not recreate the deleted lines or modify this software to access // or otherwise connect to any Project Honey Pot server. // // *** START CUT HERE *** // define('__REQUEST_HOST', 'hpr9.projecthoneypot.org'); define('__REQUEST_PORT', '80'); define('__REQUEST_SCRIPT','/cgi/serve.php'); // // *** FINISH CUT HERE *** //
define('__HPOT_TAG1', 'abb8946c8059ad83ce2b9fa3f8cbfaa3'); define('__HPOT_TAG2', '5d124a3ec9efda50a2cd4f3ccd6bc900'); define('__HPOT_TAG3', '34aa2473d1aa4705f92165addfe297ff');
define('__CLASS_STYLE_1','uijobriwuwa'); define('__CLASS_STYLE_2','spiclid');
define('__DIV1', 'chir1');
define('__VANITY_L1', 'MEMBER OF PROJECT HONEY POT'); define('__VANITY_L2', 'Spam Harvester Protection Network'); define('__VANITY_L3', 'provided by Unspam');
define('__DOC_TYPE1', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n'); define('__HEAD1', '<html>\n<head>\n'); define('__HEAD2', '<title>http://www.gaiser.org</title>\n</head>\n'); define('__ROBOT1', '<meta name="robots" content="noarchive">\n<meta name="robots" content="noindex,follow">\n'); define('__NOCOLLECT1', '<meta name="no-email-collection" content="/">\n'); define('__TOP1', '<body>\n<center>\n'); define('__EMAIL1A', '<a href="mailto:'); define('__EMAIL1B', '" style="display: none;">'); define('__EMAIL1C', '</a>'); define('__EMAIL2A', '<a href="mailto:'); define('__EMAIL2B', '" style="display:none;">'); define('__EMAIL2C', '</a>'); define('__EMAIL3A', '<a style="display: none;" href="mailto:'); define('__EMAIL3B', '">'); define('__EMAIL3C', '</a>'); define('__EMAIL4A', '<a style="display:none;" href="mailto:'); define('__EMAIL4B', '">'); define('__EMAIL4C', '</a>'); define('__EMAIL5A', '<a href="mailto:'); define('__EMAIL5B', '"></a>'); define('__EMAIL5C', '..'); define('__EMAIL6A', '<span style="display: none;"><a href="mailto:'); define('__EMAIL6B', '">'); define('__EMAIL6C', '</a></span>'); define('__EMAIL7A', '<span style="display:none;"><a href="mailto:'); define('__EMAIL7B', '">'); define('__EMAIL7C', '</a></span>'); define('__EMAIL8A', '<!-- <a href="mailto:'); define('__EMAIL8B', '">'); define('__EMAIL8C', '</a> -->'); define('__EMAIL9A', '<div id="'.__DIV1.'"><a href="mailto:'); define('__EMAIL9B', '">'); define('__EMAIL9C', '</a></div><br><script language="JavaScript" type="text/javascript">document.getElementById(\''.__DIV1.'\').innerHTML=\'\';</script>'); define('__EMAIL10A', '<a href="mailto:'); define('__EMAIL10B', '"><!-- '); define('__EMAIL10C', ' --></a>'); define('__LEGAL1', ''); define('__LEGAL2', '\n'); define('__STYLE1', '\n<style>a.'.__CLASS_STYLE_1.'{color:#FFF;font:bold 10px arial,sans-serif;text-decoration:none;}</style>'); define('__VANITY1', '<table cellspacing="0"cellpadding="0"border="0"style="background:#999;width:230px;"><tr><td valign="top"style="padding: 1px 2px 5px 4px;border-right:solid 1px #CCC;"><span style="font:bold 30px arial,sans-serif;color:#666;top:0px;position:relative;">@</span></td><td valign="top" align="left" style="padding:3px 0 0 4px;"><a href="http://www.projecthoneypot.org/" class="'.__CLASS_STYLE_1.'">'.__VANITY_L1.'</a><br><a href="http://www.unspam.com"class="'.__CLASS_STYLE_1.'">'.__VANITY_L2.'<br>'.__VANITY_L3.'</a></td></tr></table>\n'); define('__BOTTOM1', '</center>\n</body>\n</html>\n');
function getLegalContent() { return '<table cellpadding="0" border="0" cellspacing="0"><tr>\n<td><font style="font-family: courier, monospace;"> <br> <br>The <br>to y<br>othe<br>Webs<br>re<!-- coyotes lovable fuel future perdition -->ad<br>agen<br>them<br>non-<br>Webs<br><br><b><font color=white>o</font><font color=white>c</font></b> <br><font color=white>g</font><br>Spec<br>Non-<br>spid<br>prog<br>auto<br><br>Emai<br>It i<br>alon<br>has <br>stor<br>valu<br>stor<br>agre<br><br> <br><font color=white>a</font><br>Each<br>agai<br>("Ju<br>the<!-- interface horseless trick corner --> <br>such<br>and <br>of f<br>any <br>Serv<br>the <br><br> <br> <br>You <br>may <br>abus<!-- tactic doubleedged criterion heterodyne investigation --><br>Visi<br><br>VISI<br>PART<br>SUBS<br></font></td>\n<td><font style="font-family: courier, monospace;"> <br><br>webs<br>ou s<br>r te<br>ite <br> the<br>ts o<br>. Th<br>tran<br>ite.<br><br> <br><br>ial <br>Huma<br>ers,<br>rams<br>mati<br><br>l ad<br>s re<br>e. Y<br>a va<!-- sentence monochromatic weekly --><br>age,<br>e of<br>ing <br>emen<br><br> <br><br> par<br>nst <br>dici<br>regi<br><font color=white>a</font>law<br>perf<br>eder<br>acti<br>ice.<br>abov<br><br> <br><br>cons<br>appe<br>e. T<br>tors<br><br>TORS<br>Y OR<!-- ignorance climacteric distinguished unit --><br>EQUE<br></font></td>\n<td><font style="font-family: courier, monospace;"> <br><br>ite<!-- exgratia kindly spell killer soft --><font color=white>h</font><br>ubje<br>rms<font color=white>s</font><br>you<font color=white>g</font><br>m ca<br>f th<br>e ac<br>sfer<br><br><br><b><font color=white>p</font></b> <br><br>rest<br>n Vi<br> bot<br> des<br>call<br><br>dres<br>cogn<br>ou a<br>lue <br> and<br> the<br>this<br>t an<br><br> <br><br>ty a<br>the <br>al A<br>ster<br>s ar<br>orme<br>al a<br>on b<br> You<br>e<font color=white>s</font>ag<br><br><b><font color=white>k</font></b> <br><br>ent<!-- visit --> <br>ar s<br>he I<br> agr<br><br> A<!-- trend gradual powerful handling -->GR<br> SEN<br>NT B<br></font></td>\n<td><font style="font-family: courier, monospace;"> <br><br>from<br>ct<!-- particular side conviction --> t<br>gove<br>acce<br>refu<br>e in<br>cess<br>able<br><br><br> <b><font color=white>e</font>S</b><br><br>rict<br>sito<br>s, i<br>igne<br>y.<br><br>ses <br>ized<br>ckno<br>not <br>/or <br>se<font color=white>s</font>a<br> Web<br>d ex<br><br> <br><br>gree<br>othe<!-- appendix fraud home grass --><br>ctio<!-- sum ailment chamber summit bloody --><br>ed A<br>e<font color=white>p</font>ap<br>d en<br>nd s<br>roug<br><font color=white>c</font>con<br>reem<br><br> <b><font color=white>f</font></b> <br><br>to h<br>omew<br>dent<br>ee n<br><br>EE T<br>DING<br>REAC<br></font></td>\n<td><font style="font-family: courier, monospace;"> <br><br> whi<br>o th<br>rnin<br>pt t<br>lly.<br>divi<br> rig<br><font color=white>p</font>wit<br><br><br><b>PECI</b><br><br>ions<br>rs. <br>ndex<br>d to<br><br><br>on t<br> tha<br>wled<br>less<br>dist<br>ddre<br>site<br>pres<br><br> <br><br>s<!-- apish goshawks unequaled increasing --> th<br>r in<br>n") <br>dmin<br>plie<br>tire<br>tate<br>ht a<br>sent<br>en<!-- potato fetal truncate -->t.<br><br> <br><br>avin<br>here<br>ifie<!-- unfit folk bias fat --><br>ot t<br><br>HAT <br><font color=white>i</font>ANY<br>H OF<br></font></td>\n<td><font style="font-family: courier, monospace;"> <br><br>ch y<br>e fo<br>g ac<br>hese<br> Any<br>dual<br>hts <br>hout<br><br><br><b>AL</b> <b>L</b><br><br> on <br>Non-<br>ers,<br> acc<br><br><br>his <br>t th<br>ge<font color=white>k</font>a<br> t<!-- dusty -->ha<br>ribu<br>sses<br>\'s e<br>sly <br><br><b><font color=white>i</font></b> <b><font color=white>i</font></b><br><br>at a<br> con<!-- hilarious weekly sad --><br>shal<br>istr<br>d to<br>ly w<br> cou<br>gain<br> to <br><br><br> <b><font color=white>g</font></b> <br><br>g yo<br> on<font color=white>s</font><br>r is<br>o<font color=white>i</font>us<br><br>HARV<br> ME<!-- wicker hipped spokesman saddlebacked decretal -->S<br> THE<br></font></td>\n<td><font style="font-family: courier, monospace;"> <b><font color=white>c</font>T</b><br><br>ou a<br>llow<br>cess<br> ter<br><font color=white>p</font>Non<br>(s) <br>gran<br><font color=white>k</font>the<br><br><br><b>ICEN</b><br><br>a vi<br>Huma<br> rob<br>ess,<br><br><br>site<br>ese <br>nd a<br>n US<br>tion<br>. In<br>mail<br>proh<br><br><b><font color=white>e</font>APP</b><br><br>ny s<br>nect<br>l be<br>ativ<br> agr<br>ithi<br>rts<font color=white>h</font><br>st h<br>elec<br><br><br><b>RECO</b><br><br>ur I<br>this<br><font color=white>k</font>uni<br>e th<br><br>ESTI<br>SAGE<br>SE T<br></font></td>\n<td><font style="font-family: courier, monospace;"><b>ERMS</b><br><br>cces<br>ing <br> to <br>ms a<br>-Hu<!-- rawboned rallentando worthy -->m<br>who <br>ted <br> exp<br><br><br><b>SE</b> <b>R</b><br><br>sito<br>n<font color=white>i</font>Vi<br>ots,<br> rea<br><br><br> are<br>emai<br>gree<br> $50<br> of <br>tent<br> add<br>ibit<br><br><b>LICA</b><br><br>uit,<br>ion <br> gov<br>e Co<br>eeme<br>n th<br>with<br>im i<br>tron<br><br><br><b>RDS</b> <br><br>nter<br> pag<br>quel<br>is<!-- entry solace italian --> a<br><br>NG, <br>(S) <br>ERMS<br></font></td>\n<td><font style="font-family: courier, monospace;"> <b>AND</b><br><br>sed <br>co<!-- athletes backstage standup -->nd<br>the <br>nd c<br>an<font color=white>c</font>V<br>cont<br>to y<br>ress<br><br><br><b>ESTR</b><br><br>r\'s<font color=white>o</font><br>sito<br> cra<br>d, c<br><br><br><font color=white>s</font>con<br>l ad<br> tha<br>. Yo<br>thes<br>iona<br>ress<br>ed.<br><br><b>BLE<font color=white>d</font></b><br><br> act<br>with<br>erne<br>ntac<br>nts <br>e Ad<br>in t<br>n co<br>ic s<br><br><br><b>OF</b> <b>V</b><br><br>net <br>e (t<br>y ma<br>ddre<br><br>GATH<br>T<!-- determined neophyte -->O T<br> OF <br></font></td>\n<td><font style="font-family: courier, monospace;"> <b>CON</b><br><br>this<br>itio<br>Webs<br>ondi<br>isit<br>rols<br>ou u<br><font color=white>f</font>wri<br><br><br><b>ICTI</b><br><br>lice<br>rs<font color=white>c</font>i<br>wler<br>ompi<br><br><br>side<br>dres<br>t ea<br>u f<!-- realistic while ill dextral -->u<br>e ad<br>l co<br>es i<br><br><br><b>LAW</b> <br><br>ion <br> or <br>d<font color=white>a</font>by<br>t (t<br>betw<br>min <br>he A<br>nnec<br>ervi<br><br><br><b>ISIT</b><br><br>Prot<br>he<font color=white>t</font>"<br>tche<br>ss f<br><br>ERIN<br>HE I<br>SERV<!-- comparable --><br></font></td>\n<td><font style="font-family: courier, monospace;"><b>DITI</b><br><br><font color=white>f</font>agr<br>ns. <br>ite.<br>tion<br>ors <br>, au<br>nder<br>tten<br><br><br><b>ONS</b> <br><br>nse <br>nclu<br>s, h<br>le o<br><br><br>red <br>ses <br>ch e<br>rthe<br>dres<br>llec<br>s<font color=white>i</font>re<br><br><br><b>AND</b> <br><br>or p<br>aris<br> the<br>he "<br>een <br>Stat<br>dmin<br>tion<br>ce<font color=white>e</font>o<br><br><br><b>OR</b> <b>U</b><br><br>ocol<br>Iden<br>d to<br>or a<br><br>G, S<br>DENT<br>ICE.<br></font></td>\n<td><font style="font-family: courier, monospace;"><b>ON<!-- exceptional afraid baritone -->S</b> <br><br>eeme<br>Thes<br> By <br>s (t<br>to t<br>thor<br> the<br> per<br><br><br><b>FOR</b> <br><br>to a<br>de, <br>arve<br>r ga<br><br><br>prop<br>a<!-- ironclad spine potage -->re <br>mail<br>r<font color=white>s</font>ag<br>ses <br>tion<br>co<!-- charity cotton lightweight -->gn<br><br><br><b>JURI</b><br><br>roce<br>ing<font color=white>h</font><br> law<br>Admi<br>Admi<br>e. Y<br><font color=white>f</font>Sta<br> wit<br>f<font color=white>d</font>pr<br><br><br><b>SE</b> <b>A</b><br><br> add<br>tifi<br><font color=white>i</font>you<br>ny r<br><br>TORI<br>IFIE<br><br></font></td>\n<td><font style="font-family: courier, monospace;"><b>OF</b> <b>U</b><br><br>nt (<br>e te<br>visi<br>he "<br>he W<br>s<font color=white>d</font>or<br> Ter<br>miss<br><br><br><b>NON-</b><br><br>cces<br>but <br>ster<br>ther<br><br><br>riet<br>prov<br> add<br>ree <br>subs<br>, ha<br>ized<br><br><br><b>SD<!-- correspondence jar -->IC</b><br><br>edin<br>from<br> of <br>n St<br>n<font color=white>t</font>St<br>ou c<br>te. <br>h br<br>oces<br><br><br><b>ND</b> <b>A</b><br><br>ress<br>er")<br>r In<br>easo<br><br>NG,<font color=white>o</font><br>R C<!-- underslung quantitative ivied estate -->O<br><br></font></td>\n<td><font style="font-family: courier, monospace;"><b>SE</b> <br><br>"the<br>rms<font color=white>a</font><br>ting<br>Term<br>ebsi<br> oth<br>ms o<br>ion <br><br><br><b>HUMA</b><br><br>s th<!-- psychology --><br>are <br>s, o<br> con<br><br><br>a<!-- cobblers legacy lightfingered -->ry <br>ided<br>ress<br>that<br>tant<br>rves<br> as <br><br><br><b>TION</b><br><br>g br<br> th<!-- preferred correlation past sequacious lentissimo -->e<br>the <br>ate"<br>ate <br>onse<br>You <br>each<br>s<font color=white>f</font>re<br><br><br><b>BUSE</b><br><br> rec<br> if<font color=white>k</font><br>tern<br>n.<br><br>TRAN<br>NSTI<br><br></font></td>\n<td><font style="font-family: courier, monospace;"><br><br> Web<br>are <br> (in<br>s of<br>te s<br>erwi<br>f Se<br>of t<br><br><br><b>N</b> <b>VI</b><br><br>e We<br>not <br>r an<br>tent<br><br><br>inte<br> for<br> the<!-- white poet --><br><font color=white>o</font>the<br>iall<br>ting<br>a vi<br><br><br> <br><br>ough<br> Ter<br>st<!-- hardcover -->at<br>) fo<br>resi<br>nt<font color=white>g</font>t<br>cons<br>es o<br>gard<br><br><br> <br><br>orde<br>we s<br>et P<br><br><br>SFER<br>TUTE<br><br></font></td>\n<td><font style="font-family: courier, monospace;"><br><br>site<br>in a<br><font color=white>i</font>any<br> Ser<br>hall<br>se<font color=white>a</font>m<br>rvic<br>he o<br><br><br><b>SITO<!-- stark undecided --></b><br><br>bsit<br>limi<br>y ot<br> fro<br><br><br>llec<br> hum<br> Web<br> com<br>y di<br>, ga<!-- calendar good stenophagous foliaceous legislative --><br>olat<br><br><br><br><br>t by<br>ms o<br>e of<br>r th<br>dent<br>o th<br>ent<font color=white>k</font><br>f<font color=white>o</font>th<br>ing <br><br><br><br><br>d. A<br>uspe<br>roto<br><br><br>RING<br>S<font color=white>g</font>AN<br><br></font></td>\n<td><font style="font-family: courier, monospace;"><br><br>") i<br>ddit<br> man<br>vice<br> be <br>akes<!-- healthy perfect consciousness dream --><br>e<font color=white>g</font>ar<br>wne<!-- reference lightfingered utensil agreement -->r<br><br><br><b>RS</b> <br><br>e ap<br>ted<font color=white>p</font><br>her <br>m th<br><br><br>tual<br>an v<br>site<br>pila<br>mini<br>ther<br>ion<font color=white>e</font><br><br><br><br><br> suc<br>f Se<br> r<!-- instrument napiform -->es<br>e We<br>s en<br>e ju<br>to t<br>ese <br>acti<!-- butterfly chief --><br><br><br><br><br>n em<br>ct p<br>col <br><br><br> TO <br> ACC<br><br></font></td>\n<td><font style="font-family: courier, monospace;"><br><br>s<font color=white>g</font>pr<br>ion <br>ner)<br>"). <br>cons<br><font color=white>i</font>us<!-- paper tenuto -->e<br>e<br> of<font color=white>c</font><br><br><br><br><br>ply <br>to, <br>comp<br>e We<br><br><br> pro<br>isit<br> con<br>tion<br>shes<br>ing,<br>of<font color=white>a</font>t<br><br><br><br><br>h pa<br>rvic<br>iden<br>bsit<br>tere<br>risd<br>he v<br>Term<br>ons <br><br><br><br><br>ail <br>oten<br>addr<br><br><br>A TH<br>EPTA<br><br></font></td>\n<td><font style="font-family: courier, monospace;"><br><br>ovid<br>to<font color=white>t</font>a<br><font color=white>t</font>the<br>Ple<!-- manner salmon feline -->a<br>ider<br> of<br><br>th<!-- inorganic brave uncle -->e<br><br><br><br><br>to<br>web<br>uter<br>bsit<br><br><br>pert<br>ors<br>tain<br>,<br> the<br> and<br>his<br><br><br><br><br>rty<br>e<br>ce o<br>e as<br>d in<br>icti<!-- abstract conclusive committee --><br>enue<br>s of<br>unde<br><br><br><br><br>addr<br>tial<br>ess.<br><br><br>IRD<br>NCE<font color=white>e</font><br><br></font></td>\n<td><font style="font-family: courier, monospace;"><br><br>ed<br>ny<br><br>se<br>ed<br><br><br><br><br><br><br><br><br><br><br>e<br><br><br>y.<br><br>s<br><br><br>/or<br><br><br><br><br><br><br><br>f<br><br>to<br>on<br> in<br><br>r<br><br><br><br><br>ess<br><br><br><br><br><br>AND<br><br></font></td>\n</tr>\n</table>\n<br>'; }
?><?php
// // PROXY SUPPORT // // This honey pot script supports Proxies. If your webserver requires a proxy // for outbound connections you may configure this honey pot's settings to use // a proxy. // // For more information, visit: // http://www.projecthoneypot.org/settings_help.php // //
function formatHTML($s) { return str_replace('\n',"\n",$s); }
function getDocType() { return formatHTML(__DOC_TYPE1); } function getHeadHTML1() { return formatHTML(__HEAD1); } function getRobotHTML() { return formatHTML(__ROBOT1); } function getNoCollectHTML() { return formatHTML(__NOCOLLECT1); } function getHeadHTML2() { return formatHTML(__HEAD2); } function getTopHTML() { return formatHTML(__TOP1); } function getEmailHTML($method,$m) { switch ($method) { case 0: return ""; case 1: return formatHTML(__EMAIL1A.$m.__EMAIL1B.$m.__EMAIL1C); case 2: return formatHTML(__EMAIL2A.$m.__EMAIL2B.$m.__EMAIL2C); case 3: return formatHTML(__EMAIL3A.$m.__EMAIL3B.$m.__EMAIL3C); case 4: return formatHTML(__EMAIL4A.$m.__EMAIL4B.$m.__EMAIL4C); case 5: return formatHTML(__EMAIL5A.$m.__EMAIL5B); case 6: return formatHTML(__EMAIL6A.$m.__EMAIL6B.$m.__EMAIL6C); case 7: return formatHTML(__EMAIL7A.$m.__EMAIL7B.$m.__EMAIL7C); case 8: return formatHTML(__EMAIL8A.$m.__EMAIL8B.$m.__EMAIL8C); case 9: return formatHTML(__EMAIL9A.$m.__EMAIL9B.$m.__EMAIL9C); } return formatHTML(__EMAIL10A.$m.__EMAIL10B.$m.__EMAIL10C); } function getLegalHTML() { return formatHTML(__LEGAL1.(getLegalContent()).__LEGAL2); } function getStyleHTML() { return formatHTML(__STYLE1); } function getVanityHTML() { return formatHTML(__VANITY1); } function getBottomHTML() { return formatHTML(__BOTTOM1); }
function readSettings() { $settings = NULL; $settings_file = dirname(__FILE__)."/phpot_settings.php";
if (is_file($settings_file) && is_readable($settings_file)) { $fp = fopen($settings_file,"r"); $contents = ""; while (!feof($fp)) { $contents .= fread($fp, 8192); } fclose($fp);
$lines = explode("\n",$contents); foreach ($lines as $line) { if (trim($line) !== "") { list ($setting, $value) = @explode(":",$line,2); switch ($setting) { case "proxy_host": $settings["sock_host"] = trim($value); break; case "proxy_port": $settings["sock_port"] = trim($value); break; } if (trim($value) !== "") { $settings[trim($setting)] = trim($value); } } } }
if (isset($settings["proxy_host"]) && isset($settings["proxy_port"]) && !isset($settings["use_proxy"])) { $settings["use_proxy"] = "1"; } else { $settings["use_proxy"] = "0"; }
if (isset($settings["proxy_user"]) && isset($settings["proxy_pass"]) && !isset($settings["proxy_auth"])) { $settings["proxy_auth"] = "basic"; } else { $settings["proxy_auth"] = "none"; }
if (!isset($settings["sock_host"])) $settings["sock_host"] = __REQUEST_HOST; if (!isset($settings["sock_port"])) $settings["sock_port"] = __REQUEST_PORT;
return $settings; }
function performRequest($request) { $response = "";
$settings = readSettings();
if ($settings["use_proxy"] == "1") { // POST via proxy $post_url = "http://".__REQUEST_HOST.":".__REQUEST_PORT.__REQUEST_SCRIPT;
$head .= "POST ".$post_url." HTTP/1.1\r\n"; //$head .= "Host: ".__REQUEST_HOST."\r\n"; $head .= "User-Agent: PHPot ".__HPOT_TAG2."\r\n"; if ($settings["proxy_auth"] == "basic") { $head .= "Proxy-Authorization: Basic ".base64_encode($settings["proxy_user"].":".$settings["proxy_pass"])."\r\n"; } $head .= "Cache-Control: no-store, no-cache\r\n"; $head .= "Accept: */*\r\n"; $head .= "Pragma: no-cache\r\n"; $head .= "Content-Type: application/x-www-form-urlencoded\r\n"; $head .= "Content-Length: ".strlen($request)."\r\n"; $head .= "Connection: close\r\n\r\n";
} else { // POST directly $head = "POST ".__REQUEST_SCRIPT." HTTP/1.1\r\n"; $head .= "Host: ".__REQUEST_HOST."\r\n"; $head .= "User-Agent: PHPot ".__HPOT_TAG2."\r\n"; $head .= "Content-Type: application/x-www-form-urlencoded\r\n"; $head .= "Content-Length: ".strlen($request)."\r\n"; $head .= "Connection: close\r\n\r\n"; } $errno = NULL; $errstr = NULL; $fd = @fsockopen ($settings["sock_host"], $settings["sock_port"], $errno, $errstr, 20);
if (!$fd) { // Socket Error die("\n<BR>Unable to contact the Server. Are outbound connections disabled? (If a proxy is required for outbound traffic, you may configure the honey pot to use a proxy. For instructions, visit http://www.projecthoneypot.org/settings_help.php)<BR>\n"); return "-1"; } else {
fputs($fd,$head.$request); while(!feof($fd)) { $response .= fgets($fd,4096); } fclose($fd); }
return $response; }
function prepareRequest() { $postvars = array(); $postvars["tag1"] = __HPOT_TAG1; $postvars["tag2"] = __HPOT_TAG2; $postvars["tag3"] = __HPOT_TAG3; if (!($handle = fopen(__FILE__,"r"))) { die("\n<BR>Unable to read contents of ".__FILE__." for hashing<BR>\n"); return -2; } $contents = ""; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); $postvars["tag4"] = md5(ereg_replace("[^a-zA-Z0-9]","",$contents)); $postvars["ip"] = $_SERVER["REMOTE_ADDR"]; $postvars["svrn"] = $_SERVER["SERVER_NAME"]; $postvars["svp"] = $_SERVER["SERVER_PORT"]; $postvars["svip"] = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : ""; $postvars["rquri"] = isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : ""; $postvars["phpself"] = str_replace(' ','%20',$_SERVER["PHP_SELF"]); $postvars["version"] = "php-".phpversion(); $postvars["sn"] = str_replace(' ','%20',$_SERVER["SCRIPT_NAME"]); $postvars["ref"] = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ""; $postvars["uagnt"] = isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : ""; if (isset($_POST) && count($_POST) > 0) { $postvars["has_post"] = count($_POST); for (reset($_POST);list($k,$v) = each($_POST);) { $postvars["post|".$k] = $v; } reset($_POST); } if (isset($_GET) && count($_GET) > 0) { $postvars["has_get"] = count($_GET); for (reset($_GET);list($k,$v) = each($_GET);) { $postvars["get|".$k] = $v; } reset($_GET); }
return $postvars; }
function transcribeResponse(& $response) { $settings = NULL; $arr = explode("\n",$response); $isParam = FALSE;
for ($i=0;list(,$v)=each($arr);$i++) { if ($v == "<END>") $isParam = FALSE;
if ($isParam) { $pieces = explode("=",$v,2); $settings[$pieces[0]] = urldecode($pieces[1]); } if ($v == "<BEGIN>") $isParam = TRUE; }
if ($settings["directives"]) { $settings["directives"] = explode(",",$settings["directives"]); }
return $settings; }
header("Cache-Control: no-store, no-cache"); header("Pragma: no-cache");
$response = ""; $request = ""; $post = prepareRequest();
for (reset($post);list($k,$v) = each($post);) { $request .= "&".urlencode($k)."=".urlencode(stripslashes($v)); } $request = substr($request,1); $response = performRequest($request); if ($response == "-1") { exit(); } $settings = transcribeResponse($response);
$directives = $settings["directives"]; $email = $settings["email"]; $emailmethod = $settings["emailmethod"];
?> <?php echo (isset($directives[0]) && $directives[0]==1) ? getDocType() : ""; ?> <?php echo (isset($settings["injDocType"])) ? formatHTML($settings["injDocTypeMsg"]) : ""; ?> <?php echo (isset($directives[1]) && $directives[1]==1) ? getHeadHTML1() : ""; ?> <?php echo (isset($settings["injHead1HTML"])) ? formatHTML($settings["injHead1HTMLMsg"]) : ""; ?> <?php echo (isset($directives[8]) && $directives[8]==1) ? getRobotHTML() : ""; ?> <?php echo (isset($settings["injRobotHTML"])) ? formatHTML($settings["injRobotHTMLMsg"]) : ""; ?> <?php echo (isset($directives[9]) && $directives[9]==1) ? getNoCollectHTML() : ""; ?> <?php echo (isset($settings["injNoCollectHTML"])) ? formatHTML($settings["injNoCollectHTMLMsg"]) : ""; ?> <?php echo (isset($directives[1]) && $directives[1]==1) ? getHeadHTML2() : ""; ?> <?php echo (isset($settings["injHead2HTML"])) ? formatHTML($settings["injHead2HTMLMsg"]) : ""; ?> <?php echo (isset($directives[2]) && $directives[2]==1) ? getTopHTML() : ""; ?> <?php echo (isset($settings["injTopHTML"])) ? formatHTML($settings["injTopHTMLMsg"]) : ""; ?> <?php if (isset($settings["actMsgOn"])) { echo formatHTML($settings["actMsg"]); } if (isset($settings["errMsgOn"])) { echo formatHTML($settings["errMsg"]); } if (isset($settings["customMsgOn"])) { echo formatHTML($settings["customMsg"]); } ?> <?php echo (isset($directives[3]) && $directives[3]==1) ? getLegalHTML() : ""; ?> <?php echo (isset($settings["injLegalHTML"])) ? formatHTML($settings["injLegalHTMLMsg"]) : ""; ?> <?php if (isset($settings["altLegalOn"])) { echo formatHTML($settings["altLegalMsg"]); } ?> <?php echo (isset($directives[4]) && $directives[4]==1) ? getEmailHTML(intval($emailmethod),$email) : ""; ?> <?php echo (isset($settings["injEmailHTML"])) ? formatHTML($settings["injEmailHTMLMsg"]) : ""; ?> <?php echo (isset($directives[5]) && $directives[5]==1) ? getStyleHTML() : ""; ?> <?php echo (isset($settings["injStyleHTML"])) ? formatHTML($settings["injStyleHTMLMsg"]) : ""; ?> <?php echo (isset($directives[6]) && $directives[6]==1) ? getVanityHTML() : ""; ?> <?php echo (isset($settings["injVanityHTML"])) ? formatHTML($settings["injVanityHTMLMsg"]) : ""; ?> <?php if (isset($settings["altVanityOn"])) { echo formatHTML($settings["altVanityMsg"]); } ?> <?php echo (isset($directives[7]) && $directives[7]==1) ? getBottomHTML() : ""; ?> <?php echo (isset($settings["injBottomHTML"])) ? formatHTML($settings["injBottomHTMLMsg"]) : ""; ?>
|