Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ivanionut/2b499de0b1603fa8d9e95be370370ecb to your computer and use it in GitHub Desktop.
Save ivanionut/2b499de0b1603fa8d9e95be370370ecb to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
clienti = [
"https://mediamarket-batch.tesi-tms.net/core/framework/login.cfm",
"http://ftp-bottegaveneta.tesi-tms.net:22/core/framework/login.cfm",
"http://bulgari-ftp.tesisquare-platform.net:22/core/framework/login.cfm",
"http://ftp-carrefourfr.tesi-tms.net:22/core/framework/login.cfm",
"http://sftp-coesia.tesi-scm.net:22/core/framework/login.cfm",
"http://ftp.lavazza.tesisquare.com:22/core/framework/login.cfm",
"http://mediamarket-ftp.tesi-tms.net:22/core/framework/login.cfm",
"http://michelin-ftp.tesi-grc.net:22/core/framework/login.cfm",
"http://mmlct-ftp.tesi-scm.net:22/core/framework/login.cfm",
"http://es-nestle-ftp.tesi-tc1.net:22/core/framework/login.cfm",
"http://ftp-parena.tesi-tms.net:22/core/framework/login.cfm",
"http://primaindustrie-ftp.tesi-scm.net:22/core/framework/login.cfm",
"http://sgabrasivi-sftp.tesisquare-platform.net:22/core/framework/login.cfm",
"http://ftp-spreafico-claims.tesi-tms.net:22/core/framework/login.cfm",
"http://ftp.services.tesisquare.com:22/core/framework/login.cfm",
"http://monti.netmover.net/core/framework/login.cfm",
"http://sinv.netmover.net/core/framework/login.cfm",
"http://sony.netmover.net/core/framework/login.cfm",
"http://acoi.webposter.eu/core/framework/login.cfm",
"http://www.acropolismed.it/core/framework/login.cfm",
"http://congress.wooky.it/gsdpalba12/core/framework/login.cfm",
"http://fad.wooky.it/mastiper11/core/framework/login.cfm",
"https://jnj.tesi-scm.net/core/framework/login.cfm",
"https://jnj-shipping.tesi-scm.net/core/framework/login.cfm",
"http://nephromeet.com/core/framework/login.cfm",
"http://www.neuro.it/core/framework/login.cfm",
"http://editor.neuro.it/core/framework/login.cfm",
"http://neurologia.webposter.eu/pstneuro11/core/framework/login.cfm",
"http://pneumologia.webposter.eu/aipo2017/core/framework/login.cfm",
"http://reumatologia.webposter.eu/campusspa12/core/framework/login.cfm",
"http://sms.wooky.it/gsdp2012/core/framework/login.cfm",
"http://terapia-nutrizionale.it/core/framework/login.cfm",
"http://fontidivinadio.tesi-tms.net/core/framework/login.cfm",
"http://celgene.tesi-grc.net/core/framework/login.cfm",
"https://tirrenoinsieme.tesi-grc.net/core/framework/login.cfm",
"http://diageo.goldenring.it/core/framework/login.cfm",
"http://idb-holding.tesi-grc.net/core/framework/login.cfm",
"http://ipsen.goldenring.it/core/framework/login.cfm",
"https://savinodelbene.tesi-grc.net/core/framework/login.cfm",
"http://semplicesquare.tesi-grc.net/core/framework/login.cfm",
"http://ts_scadenze.tesi-grc.net/core/framework/login.cfm",
"http://camst.tesi-tms.net/core/framework/login.cfm",
"https://app.fiftyfinance.com/core/framework/login.cfm",
"http://app-demo.fiftyfinance.com/core/framework/login.cfm",
"http://www-demo.fiftyfinance.com/core/framework/login.cfm",
"https://beverete.tesi-tc1.net/core/framework/login.cfm",
"https://controltower.batch.tesi-tc1.net/core/framework/login.cfm",
"https://controltower.tesi-tc1.net/core/framework/login.cfm",
"https://booking.tesi-tc1.net/core/framework/login.cfm",
"https://alcantara.tesi-tms.net/core/framework/login.cfm",
"https://bormiolirocco.tesi-tms.net/core/framework/login.cfm",
"https://brpharma.tesi-tms.net/core/framework/login.cfm",
"https://parena.tesi-tms.net/core/framework/login.cfm",
"https://cedigros-claims.tesi-tms.net/core/framework/login.cfm",
"https://finiper-claims.tesi-tms.net/core/framework/login.cfm",
"https://ibba-claims.tesi-tms.net/core/framework/login.cfm",
"https://labbondanza-claims.tesi-tms.net/core/framework/login.cfm",
"http://claimsdemo.tesi-tms.net/core/framework/login.cfm",
"https://fater.tesi-tms.net/core/framework/login.cfm",
"https://kering.tesi-tms.net/core/framework/login.cfm",
"http://demo-gdo.tesi-tc1.net/core/framework/login.cfm",
"https://gdo.tesi-tc1.net/core/framework/login.cfm",
"http://training-gdo.tesi-tc1.net/core/framework/login.cfm",
"https://2iretegas-batch.tesi-scm.net/core/framework/login.cfm",
"http://2iretegas.tesi-scm.net/core/framework/login.cfm",
"http://coop-ftp.tesi-tc1.net:22/core/framework/login.cfm",
"https://coop.tesi-tc1.net/core/framework/login.cfm",
"https://masterdata.tesi-tc1.net/core/framework/login.cfm",
"https://danone.tesi-tms.net/core/framework/login.cfm",
"https://gruppomg.tesi-tms.net/core/framework/login.cfm",
"https://gruppomgtest.tesi-tms.net/core/framework/login.cfm",
"https://ivb.tesi-tms.net/core/framework/login.cfm",
"https://ivbtest.tesi-tms.net/core/framework/login.cfm",
"https://moncler.tesi-tms.net/core/framework/login.cfm",
"http://ftp-es-nestle.tesi-tc1.net:21/core/framework/login.cfm",
"https://n/a/core/framework/login.cfm",
"https://es-nestle-test.tesi-tc1.net/core/framework/login.cfm",
"https://es-nestle.tesi-tc1.net/core/framework/login.cfm",
"https://es.tesi-tc1.net/core/framework/login.cfm",
"https://mmlct-preprod.tesi-scm.net/core/framework/login.cfm",
"https://mmlct.tesi-scm.net/core/framework/login.cfm",
"https://smartbooking.tesi-tc1.net/core/framework/login.cfm",
"https://intl.tesi-tc1.net/core/framework/login.cfm",
"https://omya.tesi-tms.net/core/framework/login.cfm",
"https://omyalog.tesi-tms.net/core/framework/login.cfm",
"https://omyalogtest.tesi-tms.net/core/framework/login.cfm",
"https://omyatest.tesi-tms.net/core/framework/login.cfm",
"https://coesia.tesi-scm.net/core/framework/login.cfm",
"https://supplierconnect-scm.coesia.com/core/framework/login.cfm",
"https://carrefourfr-quality.tesi-tms.net/core/framework/login.cfm",
"https://carrefourfr.tesi-tms.net/core/framework/login.cfm",
"http://kuehnenagel-ftp.tesi-tms.net:21/core/framework/login.cfm",
"https://kuehnenagel.tesi-tms.net/core/framework/login.cfm",
"https://claims.tesi-tms.net/core/framework/login.cfm",
"https://spreafico-claims-preprod.tesi-tms.net/core/framework/login.cfm",
"https://spreafico-claims.tesi-tms.net/core/framework/login.cfm",
"https://demo-retail.tesi-tms.net/core/framework/login.cfm",
"https://agrati.tesi-scm.net/core/framework/login.cfm",
"https://vendor.agrati.com/core/framework/login.cfm",
"https://alcantara.tesi-grc.net/core/framework/login.cfm",
"https://bbraun.tesi-grc.net/core/framework/login.cfm",
"https://michelin.tesi-grc.net/core/framework/login.cfm",
"https://olsagroup.tesi-scm.net/core/framework/login.cfm",
"https://p4i.tesi-grc.net/core/framework/login.cfm",
"https://sorgenia.tesi-grc.net/core/framework/login.cfm",
"https://tesipaperless.tesisquare.com/core/framework/login.cfm",
"http://illva-depletions-ws.goldenring.it/core/framework/login.cfm",
"http://illva-depletions.goldenring.it/core/framework/login.cfm",
"https://pepsico.netmover.net/core/framework/login.cfm",
"https://pepsico.tesi-tms.net/core/framework/login.cfm",
"https://tesipyb.net/core/framework/login.cfm",
"https://tesipyb.it/core/framework/login.cfm",
"https://fecs.tesisquare.com/core/framework/login.cfm",
"https://oldtesipaperless.tesisquare.com/core/framework/login.cfm",
"https://costmanagement.medcmt.it/core/framework/login.cfm",
"https://costmanagement-batch.medcmt.it/core/framework/login.cfm",
"https://bottegaveneta-platform.tesi-scm.net/core/framework/login.cfm",
"https://bottegaveneta.tesi-scm.net/core/framework/login.cfm",
"https://bottegaveneta.tesi-tms.net/core/framework/login.cfm",
"https://bottegavenetascm.tesi-scm.net/core/framework/login.cfm",
"https://brpharma.tesisquare-platform.net/core/framework/login.cfm",
"https://diasorin.tesisquare-platform.net/core/framework/login.cfm",
"https://lamborghini.tesi-tms.net/core/framework/login.cfm",
"https://lamborghini.tesisquare-platform.net/core/framework/login.cfm",
"http://primaindustrie-ws.tesi-scm.net/core/framework/login.cfm",
"https://primaindustrie-test.tesi-scm.net/core/framework/login.cfm",
"https://primaindustrie.tesi-scm.net/core/framework/login.cfm",
"https://fendi.tesisquare-platform.net/core/framework/login.cfm",
"https://pt-nestle.tesi-tc1.net/core/framework/login.cfm",
"https://sgabrasivi-ftp.tesisquare-platform.net/core/framework/login.cfm",
"https://sgabrasivi.tesisquare-platform.net/core/framework/login.cfm",
"https://ynap-ws.tesi-scm.net/core/framework/login.cfm",
"https://ynap.tesi-scm.net/core/framework/login.cfm",
"https://alitalia.tesisquare-platform.net/core/framework/login.cfm",
"https://posteitaliane-gdpr.tesisquare-platform.net/core/framework/login.cfm",
"https://chefexpress.tesisquare-platform.net/core/framework/login.cfm",
"https://elmec.tesisquare-platform.net/core/framework/login.cfm",
"https://hera.tesisquare-platform.net/core/framework/login.cfm",
"https://inalca.tesisquare-platform.net/core/framework/login.cfm",
"https://lavazza.tesisquare-platform.net/core/framework/login.cfm",
"https://marr.tesisquare-platform.net/core/framework/login.cfm",
"https://tesi.tesisquare-platform.net/core/framework/login.cfm",
"http://aspi-ws.tesi-scm.net/core/framework/login.cfm",
"https://aspi.tesi-scm.net/core/framework/login.cfm",
"https://consip.tesisquare-platform.net/core/framework/login.cfm",
"https://iren.tesisquare-platform.net/core/framework/login.cfm",
"https://recordati.tesisquare-platform.net/core/framework/login.cfm",
"https://grc-cora.tesisquare-platform.net/core/framework/login.cfm",
"https://barilla-test.tesisquare-platform.net/core/framework/login.cfm",
"https://bulgarigioielli-preprod.tesisquare-platform.net/core/framework/login.cfm",
"https://lavazza-tms-62-test.tesisquare-platform.net/core/framework/login.cfm",
"https://lavazza-tms-test.tesisquare-platform.net/core/framework/login.cfm",
"https://bricocenter-tms-test.tesisquare-platform.net/core/framework/login.cfm",
"https://leroymerlin-test.tesisquare-platform.net/core/framework/login.cfm",
"https://leroymerlin-tms-test.tesisquare-platform.net/core/framework/login.cfm",
"http://caviro-ftp.tesisquare-platform.net:21/core/framework/login.cfm",
"https://caviro.tesisquare-platform.net/core/framework/login.cfm",
"https://mediamarket-test.tesi-tms.net/core/framework/login.cfm",
"https://mediamarket-ws-test.tesi-tms.net/core/framework/login.cfm",
"https://microport.tesisquare-platform.net/core/framework/login.cfm"
];
clienti = [ "https://jnj-shipping.tesi-scm.net" ];
writeoutput("Numero clienti: " & arraylen(clienti) & "<br><br>");
puntabile=0;
for (idx = 1; idx <= min(arraylen(clienti), 50); idx++) {
original = clienti[idx];
tentativi=3;
redirect = "";
while (tentativi > 0){
cfhttp(method="GET", charset="utf-8", url=original & redirect, result="result", timeout="1");
writedump(result);
tentativi--;
if(testLogin(result)){
writeoutput(original & " -> Buon fine<br>");
puntabile++;
tentativi=0;
}
}
//writeDump(result);
}
writeoutput("<br><br><br>Numero clienti puntabili: " & puntabile);
writeoutput("<br>clienti in errore: " & arraylen(clienti) - puntabile);
function testLogin(struct result){
return structkeyexists(arguments.result, "statuscode") and
listfirst(arguments.result.statuscode, " ") eq "200" and
structkeyexists(arguments.result, "filecontent") and
(findNoCase('<input id="userlogin" name="userlogin"', arguments.result.filecontent) gt 0 or
findNoCase('<input name="userlogin" id="userlogin"', arguments.result.filecontent) gt 0);
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment