Tuesday, July 31, 2007

Experts-exchange deobfuscator

Here's a little something I ended up with. Someone on Digg mentioned a de-obfuscator for experts-exchange.com postings, and looking at it I realized it used ROT13 but did an AJAX call to someone's free rot13 service, which seemed a little inefficient. (And impolite)

So here's a version that does it locally and also does it better by only converting actual text in the posting.

(Kudos Code2HTML)...


// ==UserScript==
// @name Experts Exchange Deobfuscator
// @author Terr
// @namespace http://deltanin.blogspot.com/
// @version 1.0.0
// @description Makes content in experts-exchange visible.
// @include http://www.experts-exchange.com/*
// @include http://experts-exchange.com/*
// ==/UserScript==

/*
Merged from two scripts
http://userscripts.org/scripts/show/10747
http://personal.inet.fi/cool/jjlammi/rot13.html

Improved with better text conversion by using the DOM to find text nodes
instead of changing innerHTML.
*/


document.addEventListener('load',function (e) {
function rot13init(){
var map = new Array();
var s = "abcdefghijklmnopqrstuvwxyz";

for (var i=0; i<s.length; i++)
map[s.charAt(i)] = s.charAt((i+13)%26);
for (var i=0; i<s.length; i++)
map[s.charAt(i).toUpperCase()] = s.charAt((i+13)%26).toUpperCase();
return map;
}
function rot13(rot13map,a){
var s = "";
for (var i=0; i<a.length; i++)
{
var b = a.charAt(i);
s+= (b>='A' && b<='Z' || b>='a' && b<='z' ? rot13map[b] : b);
}
return s;
}

var elems = document.getElementsByTagName("div");
var todo = [];
for(var i =0; i< elems.length; i++){
var elem = elems[i];
if( elem.className == "answerBody quoted"){
if( elem.getAttribute("id") == "intelliTxt"){
todo.push(elem);
}
}else if( elem.className == "blur"){
elem.className = "seethru";
}else if(elem.className == "hasMouseOver"){
elem.onmouseover = function(){};
elem.onmouseout = function(){};
}
}
var rot13map = rot13init();
for(var i =0; i < todo.length; i++){
/* We're inside a comment, but they can have BR tags as well as text. Only work on text.*/

var elem = todo[i];
for(var j =0; j < elem.childNodes.length; j++){
var subnode = elem.childNodes[j];
if(subnode.nodeType == 3){
var newnode = document.createTextNode(rot13(rot13map,subnode.nodeValue));
elem.replaceChild(newnode,subnode);
}
}
}

},false);


16 comments:

Scott said...

Now all I need to know is --

How do I put that to use?

I created a text file called
"experts-exchange.js" then copied and pasted that* into it.

Then I saved the file, opened it in Firefox and saw no option to add the script with Geasemonkey.

Then I tried it from Greasemonkey itself and sit seems to want more information.

I don't know scripts, so I was lost...

Terr said...

I must admit, I use Opera, so I'm not entirely sure what to say in terms of installation issues.

The Userscripts url is here:
http://userscripts.org/scripts/show/11057

Anonymous said...

free dating websites [url=http://loveepicentre.com/]london dating[/url] online dating http://loveepicentre.com/ the singles better than before

Anonymous said...

male multiple orgasm pill [url=http://usadrugstoretoday.com/categories/cardiovascular.htm]cardiovascular[/url] tmj and stress http://usadrugstoretoday.com/categories/cholesterin.htm back and shoulder muscle pain http://usadrugstoretoday.com/#third
hot to diet fast [url=http://usadrugstoretoday.com/categories/pain-relief.htm]pain relief[/url] amatuer bodybuilding shows [url=http://usadrugstoretoday.com/products/atacand.htm]eye inflammation enlarged eye blood vessels[/url]

Anonymous said...

controlling blood sugar [url=http://usadrugstoretoday.com/all-products.htm]no prescription pharmacies[/url] employed group health insurance self http://usadrugstoretoday.com/products/brand-amoxil.htm ibprofen or aspirin for folks with acid reflux http://usadrugstoretoday.com/products/dipyridamole.htm
american academy of aesthetic medicine [url=http://usadrugstoretoday.com/products/medrol.htm]medrol[/url] red algae calcium [url=http://usadrugstoretoday.com/products/hytrin.htm]home remedy for kidney infection[/url]

Anonymous said...

http://webhealthcentre.in/drugstore/walgreens-drugstore-locator
[url=http://webhealthcentre.in/health-centers/london-health-sciences-center]julie lucas peurto rico drug[/url] christy kinahan irish drugs dealer [url=http://webhealthcentre.in/amitriptyline/amitriptyline-10-mg]amitriptyline 10 mg[/url]
teens drugs why http://webhealthcentre.in/topamax/topamax-patient-comments
[url=http://webhealthcentre.in/health/abundant-health-phone-numbers]the long term effect of seizures after drug detox[/url] valeo pharmacy [url=http://webhealthcentre.in/health/young-at-heart-health-and-fitness-studio-port-macquarie]young at heart health and fitness studio port macquarie[/url]
pharmacy sell to uk http://webhealthcentre.in/risperidone/apotheca-pharmaceuticals-risperidone
[url=http://webhealthcentre.in/prograf/prograf-trough-level]new york college of pharmacy[/url] cvs pharmacy deland florida [url=http://webhealthcentre.in/cordarone/cordarone-intravenous]cordarone intravenous[/url] artificial sweetener used to cut drugs [url=http://webhealthcentre.in/probenecid]probenecid[/url]

Anonymous said...

http://poow.in/ginseng/chinese-ginseng-royal-jelly
[url=http://poow.in/levaquin/levaquin-wiki]expungement of a drug conviction[/url] buy valium offshore pharmacys [url=http://poow.in/xanax/pharmacia-xanax-vs-gador-alplax]pharmacia xanax vs gador alplax[/url]
levitra cialis viagra http://poow.in/levonorgestrel/levonorgestrel-side-effects
[url=http://poow.in/retin/retin-a-micro-reviews]planting the promise to be drug free[/url] lonely once the drugs are gone [url=http://poow.in/metaxalone/metaxalone-reveiw]metaxalone reveiw[/url]
wochinger gin pharmacy http://poow.in/lamictal/not-taking-lamictal
[url=http://poow.in/levonorgestrel/levonorgestrel-allergy-eye-swelling]toyota pharmacy[/url] seizure medicine and sperm [url=http://poow.in/metoclopramide/drug-interaction-sertraline-and-metoclopramide]drug interaction sertraline and metoclopramide[/url] erectile dysfunction after prostate surgery [url=http://poow.in/lamotrigine/lamotrigine-canada]lamotrigine canada[/url]

Anonymous said...

cinderella travel http://livetravel.in/airline/find-the-best-prices-for-airline-tickets asc travel sports
[url=http://livetravel.in/plane-tickets/plane-tickets-from-libya-to-uk]top travel affiliate[/url] maplanga travel za [url=http://livetravel.in/lufthansa/boeing-versus-airbus]boeing versus airbus[/url]
georgia international travel http://livetravel.in/adventure/adventure-holiday-bhutan
[url=http://livetravel.in/lufthansa/boeing-vision-2016]incentive travel job[/url] weather map travel [url=http://livetravel.in/travel/naturist-travel-agent]naturist travel agent[/url]
travel regulations for costa rica http://livetravel.in/lufthansa/boeing-insulation-blankets
[url=http://livetravel.in/travel/airstream-1973-travel-trailer-electrical-schematic]travel show in boston[/url] wyoming travel packages [url=http://livetravel.in/airlines/sioux-lookout-airlines]sioux lookout airlines[/url] travel agent dominican republic [url=http://livetravel.in/motel/beach-motel-sell]beach motel sell[/url]
cheap travel trailer in lake butler florida [url=http://livetravel.in/tours/dual-sport-motorcycle-tours]dual sport motorcycle tours[/url]
makati city travel agency http://livetravel.in/tour/asian-9-ball-tour
[url=http://livetravel.in/cruise/carribean-cruise-charleston]where did ferdinand magellan travel[/url] multi travel vacation package [url=http://livetravel.in/flight/lowest-priced-flight-tickets-from-uk-to-poland]lowest priced flight tickets from uk to poland[/url]
[url=http://livetravel.in/car-rental/rental-car-restrictions-in-mexico]rental car restrictions in mexico[/url] alabaster travel [url=http://livetravel.in/airline/northwest-airline-blog]northwest airline blog[/url] europe travel advice [url=http://livetravel.in/lufthansa/boeing-mro]boeing mro[/url]
palomino thoroughbred elite travel trailer t 829res [url=http://livetravel.in/adventure/adventure-holiday-south-africa]adventure holiday south africa[/url]

Anonymous said...

fashion designer http://topcitystyle.com/l-outwear-size7.html boarding school fashion design [url=http://topcitystyle.com/m-shirts-size5.html]clothes wholeseller[/url] clothes style
http://topcitystyle.com/?action=products&product_id=1939 kickers shoes [url=http://topcitystyle.com/cappalo-on-sale-brand79.html]development modeling visual process business environment designers agile notation[/url]

Anonymous said...

free hentai e mail http://theporncollection.in/gay-porn/gay-tattoo-symbols
[url=http://theporncollection.in/gay-video/i-love-gay-men]cod liver oil lubricant[/url] free porn of teens having sex [url=http://theporncollection.in/gay-video/gay-twin-studies]gay twin studies[/url]
animal amateur sex videos http://theporncollection.in/gay-love/buy-gay-movies
[url=http://theporncollection.in/porn-dvd/the-best-of-justin-dragon-porn]german dildo movies[/url] bbw hentai [url=http://theporncollection.in/free-hentai/torrent-hentai-games]torrent hentai games[/url]
genie lubricant garage http://theporncollection.in/gay-xxx/gay-xxx-animal-porn
[url=http://theporncollection.in/lesbian-sex/lesbian-free-pictures]hentai fkiss[/url] amateur straight naked photo shoot [url=http://theporncollection.in/lesbian-porn/teacher-lesbian-fuck]teacher lesbian fuck[/url]
true indian adult stories http://theporncollection.in/gay-anal/free-gallery-gay-pic-porn
[url=http://theporncollection.in/gay-love/gay-dentists-los-angeles]wetlands adult passwords[/url] hot sexy porn strip pussy nude vagina cideo [url=http://theporncollection.in/hentai-porn/hentai-onthe-xobx]hentai onthe xobx[/url]

Anonymous said...

wifeys world anal http://xwe.in/bbw/black-bbw-mistress
[url=http://xwe.in/shemales/grand-rapids-mi-shemales]hentai gold porn[/url] sexy video and pic [url=http://xwe.in/nylon/metallized-nylon]metallized nylon[/url]
free amateur preteens http://xwe.in/archive-adult/second-language-adult
[url=http://xwe.in/gay-anal/gay-nude-bodybuilders]porn hot women boobs[/url] skinny teen anal [url=http://xwe.in/adult-video/dental-procedure-code-remove-plaque-calculus-adult]dental procedure code remove plaque calculus adult[/url]
free chicks with getting anal fucked http://xwe.in/condom/elmo-condoms
[url=http://xwe.in/fetish/los-angeles-fetish-ball]free videos double dildo[/url] best teen titans hentai [url=http://xwe.in/erotic-video/erotic-topless-wrestling]erotic topless wrestling[/url]
black porn stars wikipedia http://xwe.in/erotic-video/sexy-adult-erotic-short-story-archives
[url=http://xwe.in/bondage/bondage-with-tights]dvd adult movies[/url] tantus acute silicone dildo [url=http://xwe.in/orgasm/hysterectomy-sex-clitoral-orgasm-how-soon]hysterectomy sex clitoral orgasm how soon[/url]

Anonymous said...

cholesterol care [url=http://usadrugstoretoday.com/products/accupril.htm]accupril[/url] philippine proposed health budget and expenditures for 2008 http://usadrugstoretoday.com/products/rogaine-2-.htm
static love heart [url=http://usadrugstoretoday.com/products/doxycycline.htm]doxycycline[/url] breast devolpment male to female transsexuals [url=http://usadrugstoretoday.com/catalogue/g.htm ]a mighty heart [/url] alex blood
obese starting point weight loss [url=http://usadrugstoretoday.com/products/vantin.htm]vantin[/url] muscle stimulator for fast twitch muscle http://usadrugstoretoday.com/categories/gastrointestinal.htm
list of prescriptions drugs [url=http://usadrugstoretoday.com/products/atarax.htm]atarax[/url] penis song rodney [url=http://usadrugstoretoday.com/products/trimox.htm ]nys high deductable medical insurance [/url] how long does it take a blood clot to heal

Anonymous said...

lauren collins gallery http://luxefashion.us/a-style-brand91.html mudd shoes [url=http://luxefashion.us/27-on-sale-size17.html]green hummel outdoor soccer shoes[/url] gunston find an old fashion girl
http://luxefashion.us/jean-paul-gaultier-men-brand116.html goldfish shoes [url=http://luxefashion.us/on-sale-page47.html]european dance shoes[/url]

Anonymous said...

casinos and charlotte http://xwn.in/betting_betting-euro blackjack machines
[url=http://xwn.in/online-casino_grand-victoria-casino-rising-sun-indiana]casinos in wisconsin age 18[/url] department of state visa lottery [url=http://xwn.in/joker_batgirl-joker-junior]batgirl joker junior[/url]
joker game board http://xwn.in/poker-online_drink-tables-for-poker-tables
[url=http://xwn.in/betting_superbowl-betting]betting bonus[/url] laughlin area hotels casinos [url=http://xwn.in/online-casino]online casino[/url]
bingo wireless http://xwn.in/poker-online_real-clay-poker-chips make a bingo chart using spelling words [url=http://xwn.in/jokers_jokers-wild-cheyenne-wy]jokers wild cheyenne wy[/url]

Anonymous said...

attractiveness of the uk gambling market http://lwv.in/poker-online/poker-trivia juegos casino
[url=http://lwv.in/poker-online/playing-poker-coloring-pages]personalized gifts for casino party[/url] blackjack buffer saiga [url=http://lwv.in/online-casinos/ontario-casinos]ontario casinos[/url]
darstellungen des jokers http://lwv.in/bingo/where-can-i-play-bingo-in-las-vegas
[url=http://lwv.in/slots/no-deposit-bonus-online-slots]national lottery company johannesburg south africa[/url] gambling ages [url=http://lwv.in/keno/free-online-casinos-with-superball-keno]free online casinos with superball keno[/url]
keno excel http://lwv.in/roulette/roulette-wiz does boomtown casino hotels accept pets [url=http://lwv.in/gambling-online/gambling-addiction-borderline-personality-disorder-stress]gambling addiction borderline personality disorder stress[/url]

Anonymous said...

online movie streaming [url=http://moviestrawberry.com/films/film_avpr_aliens_vs_predator_requiem/]avpr aliens vs predator requiem[/url] flintstones movie funny dirty http://moviestrawberry.com/easy-downloads/letter_R/?page=7 bowen theory movie in her shoes
flushed away the movie [url=http://moviestrawberry.com/films/film_pootie_tang/]pootie tang[/url] jodi foster movie 9 17 http://moviestrawberry.com/films/film_bikini_beach/ movie plot spoilers
wichita falls movie theaters [url=http://moviestrawberry.com/films/film_simon_king_of_the_witches/]simon king of the witches[/url] movie sex scsnes
fastest download movie website [url=http://moviestrawberry.com/films/film_hellraiser_inferno/]hellraiser inferno[/url] jax movie times http://moviestrawberry.com/films/film_ice_blues/ myth indian spider and coyote movie
movie sword [url=http://moviestrawberry.com/films/film_the_las_vegas_abductions/]the las vegas abductions[/url] movie quotes stripes http://moviestrawberry.com/films/film_just_visiting/ premire movie threater