![]() |
|
Complete Challenge: Folder Hacking - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +---- Thread: Complete Challenge: Folder Hacking (/showthread.php?tid=5636921) |
Complete Challenge: Folder Hacking - mrwhitecock - Jun 1, 2017 In your system, what's the fastest way to make a folder for each alphabet and inside each of these folders there's a subfolder with every alphabet once again. Alphabets A-Z Who will win this? * - Reece Morgan - Jun 1, 2017 Code for l in {A...Z} do mkdir $l; doneOr if you want a one-line solution: Code for l in {A...Z} do mkdir $l | for i in {A...Z} do mkdir $/$i; done; doneNote: This is just logic code. * - Nomad.Null - Jun 1, 2017 I do not dare test this for fear it will recurse forever and completely fuck my SSD. Play with this at your own risk. PHP Code * - mrwhitecock - Jun 2, 2017 (Jun 1, 2017 12:42 PM)True Demon Wrote: I do not dare test this for fear it will recurse forever and completely fuck my SSD. Play with this at your own risk. Doesn't work. Maybe I do contest winner wins money :D * - -Mr Mesmer - Jun 2, 2017 (Jun 2, 2017 10:58 AM)mrwhitecock Wrote: Doesn't work. Maybe I do contest winner wins money :D Why not take the opportunity to learn to code for yourself? You'd be expanding on what you already know and could release what you've learned in a tutorial to further help the community. * - Reece Morgan - Jun 2, 2017 (Jun 2, 2017 10:58 AM)mrwhitecock Wrote: Doesn't work. Maybe I do contest winner wins money :D I posted the fucking code in the first post you dumb cunt. My code works fine. Why u reply to TrueDemon and not me? I'm not good enough for u because i don't have a fancy sig? ![]() Code reece@RMorgan-Desktop:~/testfolder$ for l in {A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z}; do mkdir $l; for i in {A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z} ; do mkdir $l/$i; done; done;EDIT: Sorry for raging at u im drunked. * - Nomad.Null - Jun 3, 2017 Reece's code is vastly more efficient than my solution anyhow, and it doesn't result in an infinite recursion. I was under the impression he was looking for a rabbit virus. * - Condorr - Jun 4, 2017 I remember a .bat file back in the day that was easy to write in notepad and when ran it endlessly makes folders in folders and fucks your HDD. Now im thinking about getting one of those rubber duckies. * - Alone. - Jun 5, 2017 What will the winner Get? * - Hello Buddy - Jun 5, 2017 Give this a go. Be careful as it will run forever PHP Code |