@echo off
setlocal enabledelayedexpansion
:: Admin check
net session >nul 2>&1 || (
echo Please run as administrator.
pause
exit /b
)
:: Get Wi-Fi profiles
echo Scanning saved Wi-Fi networks...
echo --------------------------------
set count=0
for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles ^| findstr "All User Profile"') do (
set /a count+=1
set "ssid=%%a"
set "ssid=!ssid:~1!"
echo [!count!] !ssid!
set "SSID_!count!=!ssid!"
)
echo --------------------------------
if %count% == 0 (
echo No saved networks found.
pause
)
:: Enhanced input handling
:retry
set "selection="
set /p "selection=Enter network number (1-%count%): "
:: Clean input and force numeric
set "selection=%selection:"=%"
set "selection=%selection: =%"
set /a "num=selection" 2>nul
if !errorlevel! == 1 (
echo Invalid input! Numbers only.
goto retry
)
if %num% lss 1 (
echo Minimum number is 1.
goto retry
)
if %num% gtr %count% (
echo Maximum number is %count%.
goto retry
)
:: Get password with exact match
call set "selected_ssid=%%SSID_%num%%%"
echo Retrieving password for "%selected_ssid%"...
set "password="
for /f "tokens=2 delims=:" %%a in ('netsh wlan show profile name^="%selected_ssid%" key^=clear ^| findstr /i /c:"Key Content"') do (
set "password=%%a"
set "password=!password:~1!"
)
:: Show results
if defined password (
echo Password for "%selected_ssid%": "!password!"
) else (
echo No password found. Verify:
echo 1. Network requires password
echo 2. You've previously connected
echo 3. SSID is case-sensitive
)
:: Continue to next profile selection
goto retry
:: Display exit message before closing
exit
Pano to lodicakes, pede pa elaborate kung saan need i-run to?I made a script for you to run as Administrator to see the wifi profile name and be able to select the profile and view passwordCode:@echo off setlocal enabledelayedexpansion :: Admin check net session >nul 2>&1 || ( echo Please run as administrator. pause exit /b ) :: Get Wi-Fi profiles echo Scanning saved Wi-Fi networks... echo -------------------------------- set count=0 for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles ^| findstr "All User Profile"') do ( set /a count+=1 set "ssid=%%a" set "ssid=!ssid:~1!" echo [!count!] !ssid! set "SSID_!count!=!ssid!" ) echo -------------------------------- if %count% == 0 ( echo No saved networks found. pause ) :: Enhanced input handling :retry set "selection=" set /p "selection=Enter network number (1-%count%): " :: Clean input and force numeric set "selection=%selection:"=%" set "selection=%selection: =%" set /a "num=selection" 2>nul if !errorlevel! == 1 ( echo Invalid input! Numbers only. goto retry ) if %num% lss 1 ( echo Minimum number is 1. goto retry ) if %num% gtr %count% ( echo Maximum number is %count%. goto retry ) :: Get password with exact match call set "selected_ssid=%%SSID_%num%%%" echo Retrieving password for "%selected_ssid%"... set "password=" for /f "tokens=2 delims=:" %%a in ('netsh wlan show profile name^="%selected_ssid%" key^=clear ^| findstr /i /c:"Key Content"') do ( set "password=%%a" set "password=!password:~1!" ) :: Show results if defined password ( echo Password for "%selected_ssid%": "!password!" ) else ( echo No password found. Verify: echo 1. Network requires password echo 2. You've previously connected echo 3. SSID is case-sensitive ) :: Continue to next profile selection goto retry :: Display exit message before closing exit
save the file as whatever.bat and run as admin
Please like if this helped you
I would put it in notepad 2 its better and save as not .txt but bat
omg sorry did look carefully you are using android not windows lol
and once again did not realize i allready posted a method for android here wow you can see how my day is going lol
salamat dito papsI made a script for you to run as Administrator to see the wifi profile name and be able to select the profile and view passwordCode:@echo off setlocal enabledelayedexpansion :: Admin check net session >nul 2>&1 || ( echo Please run as administrator. pause exit /b ) :: Get Wi-Fi profiles echo Scanning saved Wi-Fi networks... echo -------------------------------- set count=0 for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles ^| findstr "All User Profile"') do ( set /a count+=1 set "ssid=%%a" set "ssid=!ssid:~1!" echo [!count!] !ssid! set "SSID_!count!=!ssid!" ) echo -------------------------------- if %count% == 0 ( echo No saved networks found. pause ) :: Enhanced input handling :retry set "selection=" set /p "selection=Enter network number (1-%count%): " :: Clean input and force numeric set "selection=%selection:"=%" set "selection=%selection: =%" set /a "num=selection" 2>nul if !errorlevel! == 1 ( echo Invalid input! Numbers only. goto retry ) if %num% lss 1 ( echo Minimum number is 1. goto retry ) if %num% gtr %count% ( echo Maximum number is %count%. goto retry ) :: Get password with exact match call set "selected_ssid=%%SSID_%num%%%" echo Retrieving password for "%selected_ssid%"... set "password=" for /f "tokens=2 delims=:" %%a in ('netsh wlan show profile name^="%selected_ssid%" key^=clear ^| findstr /i /c:"Key Content"') do ( set "password=%%a" set "password=!password:~1!" ) :: Show results if defined password ( echo Password for "%selected_ssid%": "!password!" ) else ( echo No password found. Verify: echo 1. Network requires password echo 2. You've previously connected echo 3. SSID is case-sensitive ) :: Continue to next profile selection goto retry :: Display exit message before closing exit
save the file as whatever.bat and run as admin
Please like if this helped you
I would put it in notepad 2 its better and save as not .txt but bat
omg sorry did look carefully you are using android not windows lol
and once again did not realize i allready posted a method for android here wow you can see how my day is going lol
How to do on android ?I made a script for you to run as Administrator to see the wifi profile name and be able to select the profile and view passwordCode:@echo off setlocal enabledelayedexpansion :: Admin check net session >nul 2>&1 || ( echo Please run as administrator. pause exit /b ) :: Get Wi-Fi profiles echo Scanning saved Wi-Fi networks... echo -------------------------------- set count=0 for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles ^| findstr "All User Profile"') do ( set /a count+=1 set "ssid=%%a" set "ssid=!ssid:~1!" echo [!count!] !ssid! set "SSID_!count!=!ssid!" ) echo -------------------------------- if %count% == 0 ( echo No saved networks found. pause ) :: Enhanced input handling :retry set "selection=" set /p "selection=Enter network number (1-%count%): " :: Clean input and force numeric set "selection=%selection:"=%" set "selection=%selection: =%" set /a "num=selection" 2>nul if !errorlevel! == 1 ( echo Invalid input! Numbers only. goto retry ) if %num% lss 1 ( echo Minimum number is 1. goto retry ) if %num% gtr %count% ( echo Maximum number is %count%. goto retry ) :: Get password with exact match call set "selected_ssid=%%SSID_%num%%%" echo Retrieving password for "%selected_ssid%"... set "password=" for /f "tokens=2 delims=:" %%a in ('netsh wlan show profile name^="%selected_ssid%" key^=clear ^| findstr /i /c:"Key Content"') do ( set "password=%%a" set "password=!password:~1!" ) :: Show results if defined password ( echo Password for "%selected_ssid%": "!password!" ) else ( echo No password found. Verify: echo 1. Network requires password echo 2. You've previously connected echo 3. SSID is case-sensitive ) :: Continue to next profile selection goto retry :: Display exit message before closing exit
save the file as whatever.bat and run as admin
Please like if this helped you
I would put it in notepad 2 its better and save as not .txt but bat
omg sorry did look carefully you are using android not windows lol
and once again did not realize i allready posted a method for android here wow you can see how my day is going lol

Try termuxHow to do on android ?![]()
ThankyouTry termux