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?
Alphabets A-Z
Who will win this?
Complete Challenge: Folder Hacking |
|
Jun 1, 2017 12:12 PM
(This post was last modified: Jun 1, 2017 12:15 PM by Reece Morgan.)
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.
Drink all the booze, hack all the things.
hackirc.net Plex. That is all.
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 Malware Dev & Grey Hat available for contract work. DM if you need me.
OSCP, OSCE, OSEE, OSWE, OSWP, CEH, CISSP
Yeah, I've been around a while
(Jun 1, 2017 12:42 PM)Nomad.Null 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 (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.
Jun 2, 2017 04:12 PM
(This post was last modified: Jun 2, 2017 04:17 PM by Reece Morgan.)
(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.
Drink all the booze, hack all the things.
hackirc.net Plex. That is all.
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.
Malware Dev & Grey Hat available for contract work. DM if you need me.
OSCP, OSCE, OSEE, OSWE, OSWP, CEH, CISSP
Yeah, I've been around a while
Jun 5, 2017 07:30 PM
(This post was last modified: Jun 5, 2017 07:33 PM by Hello Buddy.)
Give this a go. Be careful as it will run forever
PHP Code |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| by SandeepkrSep 27, 2016 11:25 AM | 0 | 147 |
Sep 27, 2016 11:25 AM Last Post: Sandeepkr |
| by xMoDOct 3, 2014 06:13 PM | 9 | 309 |
Oct 3, 2014 06:13 PM Last Post: Zabuza |
| by Russian PersonJul 29, 2012 06:54 PM | 0 | 131 |
Jul 29, 2012 06:54 PM Last Post: Russian Person |