Anonymous VPN Service + Torrent Proxy


Youflood

From Encyclopedia Dramatica

Jump to: navigation, search


Contents

YouFlood

This tool was created in order to have an actual, decent program which ups page views on a YouTube video. It does this using perl, with curl doing the http grunt-work.

Youtube Dox

As of August 12, 2009, Youtube increases number of hits for a video by one everytime the flash object is loaded. The hard bit is finding a single token hash which identifies your computer (I think). A new one is assigned every time you reload the page. The problem with finding it is that the embedded object is created with javascript, and all the javascript on youtube is obfuscated to a ridiculous degree. Seriously, don't fucking look at the base-something-something.js file, it's a fucking wall of text. But that's neither here nor there, since the token (the variable $yummy in the script) is found on the actual page. Just view the source, then ctrl-f "swfArgs", it's in there as the value 't'. Anyway, with this token we can pretend we're the flash object, letting the server know that the page is getting visited.

Youtube (Google) has multiple servers all over in what's called a "cloud". If you do a dns lookup for www.youtube.com you'll get back something like five different servers. This was a problem in the original version of Youflood, since the two curl calls would often go to two different servers, when the needed to go to the same one. This is why the program currently uses host to find the ip and then chooses randomly. If anyone knows of a better way to do DNS lookup that could possibly go through tor (SOCKS), feel free to add it. It would be great if the modification didn't need to use any obscure perl modules as well.

Youtube appears to have some kind of video-page-view locking mechanism if it detects a flood from a single ip address. Youflood can use tor, which works about 3 time slower (depending on the node), but the ip gets changed every ten minutes or something like that, so it ought to circumvent this to some degree. Just use the -t option. Even without tor, there is a random wait in between each request, which will hopefully throw off the locking mechanism.

Source (Last updated August 12, 2009)

The script has a random wait in between each request, mostly to prevent flags getting raised at jewtube headquarters. Here is the source:

#!/usr/bin/perl

my $tor = '';
my @dns;

#Creates a list of ip addresses which can be used. Does it pretty sexily too, I think
#This is also the part which leaks like a motherfucker. It does not and can not go through tor
#This part also assumes that you have the host program.
foreach (`host www.youtube.com`) {
	push(@dns,$1) if /([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})/;
}

#Usage
if ([email protected]) {
	print "\n USAGE: youflood [-t] <URL>\n\n<URL>: Full, clean url of the youtube video (including http://)\n\tShould look like this: http://www.youtube.com/watch?v=cofkDkdAiUy\n-t: Use tor (localhost:9050)\n\n";
	exit;
}

elsif (@ARGV == 2) {
	$tor = '--socks4a localhost:9050 ';
}

my $url = $ARGV[-1]; #Get URL from parameters
(my $video_id) = $url =~ /http:\/\/www\.youtube\.com\/watch\?v=(.+)$/; #Extract video's id


for (my $i = 1; 1; $i++) { #Begin infinite loop

	print "===== $i\n";

	my $rand_dns = int(rand(@dns)); #We don't want to be using the same server each time, now do we?
	
	my $yummy = getYummy($rand_dns); #Get the yummy token variable.
	print "t='$yummy'\n";

	sendYummy($rand_dns);
	
	#Generate random integer for pause
	my $rand = int(rand(8));
	print "pausing $rand seconds\n";
	sleep($rand);
}

#This sub-procedure gets the hash-token-whateverthefuckitis
sub getYummy {
	print "Retrieving t (whatever that is)...";
	my $page = `curl $tor-A 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)' -H "Host: www.youtube.com" http://$dns[$_[0]]/watch?v=$video_id 2>/dev/null`; #Gets youtube page 
	$page =~ s/\n|\t//g; #Removes all newlines and tabs, I don't know that this is necessary. It doesn't hurt though

	(my $swfArgs) = $page =~ /var swfArgs = (.+?);/; #Extracts swfArgs from javascript on the page
	(my $yummy) = $swfArgs =~ /"t": "(.+?)"/; #Gets 't' value (the yummy variable) from the swfArgs

	#If something goes wrong, this will try again until it goes right
	if (!$yummy) {
		print "failed, got this instead:\n$page\nxxxxx getYummy:Trying again\n";
		$yummy = getYummy($_[0]);
	}

	return $yummy;
}

#This sub-procedure sends the actual request.
sub sendYummy {
	print "Sending video request...";
	my $response = `curl $tor-A 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)' -H "Host: www.youtube.com" http://$dns[$_[0]]/get_video?video_id=$video_id\\&t=$yummy\\&el=detailpage\\&ps=\\&fmt=34\\&noflv=1 2>/dev/null`; #The important part. This is what actually increases the page count.
	
	#Should recieve a blank response. Otherwise, assume something went wrong
	if ($response) {
		print "failed, got this:\n$page\nxxxxx sendYummy:Trying again\n";
		$response = sendYummy($_[0]);
	}
	print "Request sent, ";
}

Comment

Make sure you have the curl and host package installed, for example on ubuntu you should type in console

sudo apt-get install curl

These are both standard packages, so there shouldn't be any problems getting them in modern distros like Ubuntu or Fedora

Limitations

The newest version has support for tor, using the -t option. It assumes your tor is listening on localhost:9050, which is the default. Change it if necessary. The important point which needs to be made is that the tor function is not to keep you anonymous. It is simply there to trick the locking mechanism by continually changing the ip. The portion of the program using host does not go through tor, and I do not believe it can be made to go through tor. This shouldn't be a problem legally or in any other sense really (there is no law regarding upping youtube page views), but it is something to be noted.

JewTube Logo.png

Youflood is part of a series on YouTube.

A-BC-DE-FG-HI-JK-LM-NO-PQ-RS-TU-VW-XY-Z#

Visit the YouTube Portal

A Message From Chad and SteveA hunter shoots a bearAJcomixAaronEverettLandAbsenceOfTheAbsentAddison MikkelsonAdeleADoseOfBuckleyAeverine NievesAfr0blu3Afro NinjaAgoraphobic-BlueAkaichouAkewsticRockRAleksandr PistoletovAlexander4488Alexander4488/Approved ED PageAlexander4488/Director CommentaryAlexandercarneiroAlex MacRaeAlix HenriolAlphawerewolffAlyallieAmazingplatypus69Amber ButtrumAmerica's Third PartyAngelofthyNightAngry GrandpaAngry Homo KidAngry Video Game NerdAngryLittleGiriAnonymousNastyAnonymousThoughtAnthony 'A-Log' LoGattoAnti-Flagger Association of YouTubeAntiDisneyMovementAntoine DodsonApplemilk1988AquagirlwhitefoxArceusfan2013Ardi RizalArgent009Armake21AsalieriAshlea ClaytonASMRAstablaziaAtJap13Atheist Scum UnitedAtheneAttackofthehankAudreynolandAush0kAustin FullmerAutoplayAxelswife1AyumihamiltonB WalmerBaaaBags of MoneyBananaphoneBANGSBarefoot NatureBarmer479Bart the GeneralBattimBeebee890BetabyteiphoneBigBadFurgyTheFoxBikerfoxBill122460Billoon45BLACKB0NDBLACKbusterCriticBlasphemy ChallengeBleedingFireWolfBloodraptorBludshot the HedgehogBlueshineWolfBlunty3000Bob RehahnBodrochowskiBodyXPoliticBoh3m3BoxxyBravesgirl5BreakBrett KeaneBrokeTheInterwebBroncofn90BrookersBurger the Angry CatBURKBus Uncle

CRoadwarriorCaddicarusCakefartsCallumCartelCapnOAwesomeCaptainAtheistCaramelldansenCarl FiadinoCash MasterCassiusPlejarenAlienChad "Atheist Killa" ElliottChad HurleyChadwardennChancepsychChangeDaChannelCharlestrippyCharlie Bit Me - Again!Cheeseburger JoshCheetawolfChekovsgunCheryl ShumanChismahChloe DykstraChosonNinjaChrissy ChambersChris CrockerChris-chan/VideosChristianHillbillyChuggaaconroyCid SilverwingCid and Conners Excellent AdventureCircaRigelCirnoClay ClaymoreClayranger89CodenamesailorearthCodenamesailorearth/2nd Wikia SagaCodenamesailorearth/2nd Wikia Saga/BlacklistCodenamesailorearth/ED SagaCodenamesailorearth/The BeginningCokeman2423Colleen ThomasCooking With Jack ShowCopperCabCorey MargeraCoughlan666Crazy GideonCrazyvideosandrantsCriss AngelCropperbCrossmackCrunkcoreCrystal ShinkleCubbyCulexorCulexor/YouTubeCuntFuckBitchCupcake DogCutechongCutiePieMarziaCwilliams1976CyanterroristDJ KEEMSTARDaHaloChickDamaronDamien EstreichDan144xDandCVideosDangermanDanielspengiesDarknessthecurseDarksidered992DarkspeedsDarkzero63DashieGamesDavid After DentistDavid HockeyDavidsfarmDaxFlameDbootsthedivaDcigsDear SisterDeleting Your YouTube VideosDemcadDenalynnnDerek JeevesDerpaviangottDigitalSurgeonDiGiTiLsOuLDiaper BoyDie AntwoordDips Tobacco RedneckDLAbaoaquDog264Donnie DaviesDouble RainbowDoubleSAnimationsDownfallDr. OctogonapusDr. TranDr4g0nK1dDraconas RayneDrewtoothpasteDrinkingwithbobDrossRotzankDrp1zzaDylan KimberlinDynaCatlovesme

EdaremEddward4evaEduard KhilEgoraptorEinsidlerElevator FilmingEmmalinaEmogirl21Encyclopedia Dramatica:YouTube Improvement DriveEpic Beard ManEpic meal timeEpic Rap Battles of HistoryEpicKitty54EricDouglaceEvalionExhibit AExhibit B-5ExoParadigmGamerFail ArmyFakeSaganFake SchizophreniaFanimeFatmanFelinoidFelipenetoFergie OlverFilthy FrankFilthywhoreFirithfenionFists The EchidnaFlirty The FoxFluffy teh wolfFouseyTubeFrank BonafedeForeverKailynForum TrollingFrank'sVoiceFredFredryk PhoxFreeman's MindFriends of A-LogFrosty the SnowmanFuture the rapperFuturisticHubFCTC

Gaijin GoombahGame GrumpsGame TheoryGangstaElijahGay kissGeerupGen ZedGeorge CarlinGeorge SodiniGeorge4titleGerald CelenteGet A New DaddyGigiGimme PizzaGimmeabreakmanGinger GenocideGingerslapGloria TeschGoddessMilleniaGodofUnicornsGolimarGoosh GooshGorgeous GeorgeGorilla199Gothguurl1989Gothreaper1GothzillaGradeAUnderAGraeme Stephen TuckerGreenTeaGirlieGreg SolomonGreyson ChanceGuntherGurigorloXHaydendaftH.J. FreaksHIVchickHannah CrappsHappy Tree FriendsHarder, Better, Faster, StrongerHatedwerewolfHatersHellionExciterHinaUchiHoney BadgerHonorzHotel MarioHowToBasicHyperCharge

I Hate EverythingI Like TurtlesI just wanted to make it snowIckeriss69IDubbbzTVIgnoredImclosetfreeImmelmannInception CatInmendhamIntellectual CheckmateInterior Crocodile AlligatorInuboy1000Irate GamerIrish282Iron Man NumbersItalian SpidermanItsAboutJesusItssaphiragoreJackSepticeyeJDubsJacobDarkgodJamichJared MiltonJason SteeleJasonspeaksJawsusJay WakefieldJeffree StarJennifer Lynn PetkovJessi SlaughterJessica BeagleyJessica ValentiJewish Internet Defense ForceJewWarioJezuzFreek777JfreedanJim ProfitJoe SomebodyJoey BootsJoeysworldtourJohn KatehisJohnny RebelJonah MowryJonas BrothersJonTronJon SudanoJoseph KonyJoseph8276JoshU2uberJoshwa PlasticJuggaletteJennyJustin BieberJwriter4

K00lAIDGIRLKNIGHTRIDAHKaa VFXKai the HitchhikerKathera LockharteKatherine MarionKathleen ToddKatiesopinionKatiethesinger123Kersal MassiveKevin SmithKeyboard CatKicesieKim PetrasKimberleighKingMasterReviewKissingTheWolfKitty0706Know Your MemeKobidobidogKoraxKrappleGuyKripparrianKrispy KremeKrystle ColeKSIKumichooKyle ForrestKäpt'n Balu Und Seine Tollkühne CrewL.U.L.Z.LILSHOWSTOPPALa PequeñaLaci GreenLaddergoatLadyALT69LambiSinClairLatarian MiltonLee WestwickLegion of NowayLeisureSuitGamingLeisureSuitGaming/NoDateGamersLeprechaunLesleybloodLet's PlayLexi BeeLexshit BleuuaaaarghLia Marie JohnsonLiam SullivanLifeInATentLilypichuLimapal00zaLinkaraLisanovaLittleKuribohLoganSperman2Lonelygirl15LopunnyLordZedd16LordshadrachLouisthehedgehogLowtax/YouTubeLukeywes1234Lulz in hell TrollfagsLyle McDouchebagLynn AnnLyor Cohen

METOKURMMORPG Freak OutMRirianMachinimaMagicalPockyUsagiMajelaZeZeDiamondManlytearsMannixThePirateMariozplazeMariotehplumberMark GormleyMarkiplierMars DefdenMaruMatt ShizzleMax HarrisMaxofs2dMcJuggerNuggetsMeganLeeHeartMeganSpeaksMeleeKirbyMemy9909Michael GimsonMichael JacksonMichelle PhanMickyy MooMillion Dollar ExtremeMisha SilenostiMissHannahMinxMister MetokurMogalfulMonica PunkMonkeyGameGuidesMontagraphMorbid KrabsMorganAnsonMr PregnantMrDisambiguationMrpunchdrunk1MrRepzionMsHeartAttackMuffdaddy2MustDestroyAllMyIDIsPhatMylarBalloonFanMySpace KidMysteriousMrEnterMysteryGuitarManNOT THE BEESNaltsNarcovideoNatalie StewartNateTalksToYouNaviiNekoNeedledropNephilimFreeNephilimFree/Debate SagasNephilimFree/Misc.AsshatteryNephilimFree/The Anniepies DocumentsNessaluNichole337Nick BateNick BravoNick ChaleunphoneNiggest Crook ForceNikky RaneyNornnaNothing ToxicNuttymadam3575Nyan Cat

OfficialGATGOH GOD BILLOH MAN OH GODOld Spice GuyOldnataliedeeOmegaloreOneLessGodOnisionOperation Fat FuckOperation YewtubeOperation YouTubeOschaperOz KangarooPacificoceanasiaPaperliliesPat CondellPaul "Fetch" CarnesPaul Joseph WatsonPekka-Eric AuvinenPekitiPeppermintPattiPerez HiltonPeter SchiffPewDiePiePhantom409PigslopPissedOffVideoGamerPit ViperPixelBeeProductionsPMRantsPooh's AdventuresPreacher717Producing101ProJaredProper Words SongPyrobooby

RJ BandsmaRandomlaughingmanRational Response SquadRay GordonRay William JohnsonRaymond45154RealaloverRealman1000000000000Rebecca BlackRed Shirt GuyRedlenses2112Red MinusRemi GaillardRenettoRetro Video Game KidsReymon14Riley34470RMG ProductionsRobotnikRobtranRon SaveloRonBudda6699RootbrianRorschachRowdyCRubeus EdenRucka Rucka Ali

SKWEEZYSONYFANBOYSailormoonred1SammyClassicSonicFanSanjaya/JSargon of AkkadSaturnine FilmsSave AaliyahScarredFurrySchool Bus FightScott DeiCasScottHermanFitnessSegacampSerialKillaCSesshReincarnatedSeto-Kaiba.comSetsuna ToushirouShane DawsonShane LeeSharolaidShaycarlSherry ShrinerShockOfGodShocked and Appalled CatShon TerryShoobySimply OkamiSimply SaraSindragonSirius OrionisSittin On Tha ToiletSkueeSmell Yo DickSmogon UniversitySmorekitty97SmpfilmsSnackyCakes2008SnowVhiteSokiTwopawSonadowclubSonic X BloopersSony VegasSpaghettiosSparkling WigglesSpax3SpeakoniaSSSniperWolfStarlaglamSteAndKelStealth CatSteve ChenStu makes chocolate pudding at 4 in the morningSusan BoyleSwitchiedaggerSxephilSynchtubeTL;DWTabbyTablecowTaekesiTails DollTamias the ChipmunkTammyToeTay ZondayTay Zonday/CRLyricsTechaTedjesuschristgodTeenage Tourettes CampTehbigtoasterTerror PlaylistTh3RoyismThat Guy With The GlassesThatkidparkerThdrksideThe Annoying OrangeThe Barney BunchThe CaseyThe DickridersThe Domino's YouTube IncidentThe Failkips Strikes BackThe Fine BrosThe Florida Tweenie RapistsThe Harlan ShowThe Kewl KidsThe Incredible Flying Broomstick GuyThe MoleThe Mulberry EightThe NutshackThe Online GamerThe Slow Mo GuysThe Spoony ExperimentThe Spoony Experiment/Spoony and FriendsThe TrashmanThe Troll HunterThe Unknown AutobotThe Young TurksTheAmazingAtheistTheArchfiendTheHill88TheMrXshowTheQuestionMarkManTheRedSkullTheSockDetectiveTheSuperRobotSoujaOGThedramatubeThemaskedanalystThenintendo3ds2TherealagerbonTheresa ShellerThewinekoneThink B4 You SpeakThree Wolf MoonThunderf00tTime MagazineTimmygalTimmysmommy01TinaecmusicTolstoyKafkaEvskyTom SersonTommy JordanTommy SotomayorTonettaTonetta777Tony48219TonystockertTori BelliachiTotalbiscuitTourette's GuyTrevor RiegerTrey Eric SeslerTriciakittyTrickshottingTriggerfoxTrollsNewsTrollsOfTerrorTrololoTroyriserTruthfulChristianTsimFuckisTunakTurtle PunchTwilightSucksTwizidwickedletteTwiztidAshTwo Girls One FingerTyler Redick

UTubeDramaUlrichthehedgehogUltimate Muscle Roller LegendUltimateUKFFFanUndertakerfreak1127UnMaskingTheTruthUnstrappdUpDownMostlyVaLLarrrValisHDValleyfeverVampiricSpektorVegan GainsVennu MalleshVenomFangXVenomFangX/CriticismVenomFangX/Online DramaVenusangelicVerdmidious ReznovVicious Dog ManVideo Game ReviewersVideoGameDunkeyVioletkitty411Vipor231Vipor231/YouTubeVipor231/YoutubeVirus-20VloggerheadsVoicEverythingVonHeltonVsauce

Walls Fall OutWarisartWattageWeatherManKevinWeathercatWeegeeisgoingtokillmWilliamsleddWilly bum bumWindows Movie MakerWise Beard ManWolfAdvocateWolfeedarkfangWolfeedarkfang/supportersWolfeedarkfang/videosWorld of LongplaysWwedx2007X people YXatuXiao RishuXRazorfistxXrissXrowXxPrincessPunkxx

YIFF! The MusicalYTwatchdogYokeupYouLoveMollyYouNooberYouTubeYouTube Anti-Troll ClubYouTube AvatarsYouTube Civil WarYouTube CommentariesYouTube Deaf JamYouTube Furry WarYouTube Independence DayYouTube PoopYouTube Poop: The MovieYouTube Rape VideoYouTube RatingsYouTube StaffYouTube Street TeamYouTube Subscriber HackYouTube Super FagsYouTube Thomas ClubYouTube View FraudYouTube VigilantesYouTube War ExpertYouTube Yahweh ClanYoufloodYoung Tubers UnitedYoung Tubers United/The Trades ArticleYounger Woolwich BoyzYourTubeNewsYoutube NobodiesYtaskYuki DamonZenArcherZilianOPZzz33333

001rich10003bgood1000 Degree Knife vs X1guy1knee2xSpeedStacksDaniel3GI Industries7ols7seveng7911bio-med916power~jsСобака Бэ бэ бэээ

Matrix.gif

Youflood is part of a series on Programming.

Personal tools
Spam ED Everywhere

Anonymous VPN


Find us on Google+
VPN Service