Groups | Search | Server Info | Login | Register
Groups > it.comp.sicurezza.varie > #11357
| From | AS <invalid@invalid.invalid> |
|---|---|
| Newsgroups | it.comp.sicurezza.varie |
| Subject | Re: trucchetto |
| Date | 2026-03-03 11:48 +0100 |
| Organization | n/a |
| Message-ID | <20260303114849.0000642b@invalid.invalid> (permalink) |
| References | <20260302122902.00000f55@mvps.org> <10o62rf$14a9c$1@solani.org> <10o631n$14ag7$1@solani.org> |
Il giorno Tue, 03 Mar 2026 08:36:22 +0100 Ammammata <ammammata@tiscali.it> ha scritto: > Ammammata wrote on 03/03/2026 : > > ObiWan brought next idea : > >> @echo off > >> setlocal > >> rem --- call subroutine :) > >> call :LOOKUP >NUL 2>&1 > >> echo %WANIP% > >> goto QUIT > >>> LOOKUP > >> set NSQC=nslookup myip.opendns.com resolver1.opendns.com > >> for /f "usebackq skip=4 tokens=2" %%A in (`%NSQC%`) do set > >> WANIP=%%A > >>> QUIT > >> > >> > >> niente di che, usa un lookup DNS per reperire l'IP WAN di una > >> connessione; può far comodo a volte > >> > > > > > > tipo https://www.ipchicken.com/ ? > > e comunque mesnews "formatta" a modo suo i comandi per cui il > copia/incolla si porta dietro errori quando lo eseguo: > > The system cannot find the batch label specified - QUIT > @echo off setlocal rem --- call subroutine call :LOOKUP >NUL 2>&1 echo %WANIP% goto QUIT : :LOOKUP set NSQC=nslookup myip.opendns.com resolver1.opendns.com for /f "usebackq skip=4 tokens=2" %%A in (`%NSQC%`) do set WANIP=%%A : :QUIT exit /b %errorlevel% vediamo se ora mantiene i ":" (usarli come carattere di indentazione non è una buona idea :)
Back to it.comp.sicurezza.varie | Previous | Next — Previous in thread | Next in thread | Find similar
trucchetto ObiWan <obiwan@mvps.org> - 2026-03-02 12:29 +0100
Re: trucchetto Ammammata <ammammata@tiscali.it> - 2026-03-03 08:33 +0100
Re: trucchetto Ammammata <ammammata@tiscali.it> - 2026-03-03 08:36 +0100
Re: trucchetto AS <invalid@invalid.invalid> - 2026-03-03 11:48 +0100
Re: trucchetto AS <invalid@invalid.invalid> - 2026-03-03 11:50 +0100
Re: trucchetto Ammammata <ammammata@tiscali.it> - 2026-03-03 14:08 +0100
Re: trucchetto ObiWan <obiwan@mvps.org> - 2026-03-06 11:44 +0100
Re: trucchetto sm <carotone@test.it> - 2026-03-06 12:19 +0000
Re: trucchetto ObiWan <obiwan@mvps.org> - 2026-03-09 15:09 +0100
Re: trucchetto sm <carotone@test.it> - 2026-03-10 07:58 +0000
Re: trucchetto ObiWan <obiwan@mvps.org> - 2026-03-10 09:27 +0100
Re: trucchetto sm <carotone@test.it> - 2026-03-10 09:06 +0000
Re: trucchetto Ammammata <ammammata@tiscali.it> - 2026-03-03 14:05 +0100
Re: trucchetto ObiWan <obiwan@mvps.org> - 2026-03-06 11:44 +0100
Re: trucchetto Valerio Vanni <valerio.vanni@inwind.it> - 2026-03-03 21:26 +0100
Re: trucchetto AS <invalid@invalid.invalid> - 2026-03-03 11:51 +0100
Re: trucchetto AS <invalid@invalid.invalid> - 2026-03-03 11:55 +0100
Re: trucchetto ObiWan <obiwan@mvps.org> - 2026-03-06 11:49 +0100
Re: trucchetto BIG Umberto <user@2130706433.invalid> - 2026-03-10 01:42 +0100
Re: trucchetto ObiWan <obiwan@mvps.org> - 2026-03-10 09:28 +0100
Re: trucchetto ObiWan <obiwan@mvps.org> - 2026-03-10 09:42 +0100
csiph-web