Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2017 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ff14e2b27d66f28ff69ab90365361b12 to your computer and use it in GitHub Desktop.
Save anonymous/ff14e2b27d66f28ff69ab90365361b12 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
/* SETUP */
cfhttp(
result="inList"
, method="GET"
, url="https://pastebin.com/raw/eMRSQ4u2"
, getAsBinary = "no"
) ;
c = inList.filecontent.Split(chr(13)&chr(10)) ;
/* GO */
p = {} ;
z=arrayLen(c) ;
for(x=0;x<5;x++){
pw="" ;
r={} ;
while(structCount(r)<4){
n=RandRange(1,z) ;
r.append({"#c[n]#":true}) ;
}
for(w in structKeyList(r)) {
pw&=REReplace(w,"\b(\w)","\u\1","All") ;
}
p.append({"#pw#":57*len(pw)/10});
}
/* DUMP RESULTS */
writeDump(p) ;
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment