How to see wifi password

Run the command adb shell to open the device's shell, then navigate to the Wi-Fi configuration directory by typing cd /data/misc/wifi/ . Finally, view the contents of the Wi-Fi configuration file by running cat wpa_supplicant. conf . Look for the network blocks that contain the SSID (network name) and PSK (password)
 
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 password
Code:
@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
 
Pa
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 password
Code:
@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
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 password
Code:
@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 paps
 
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 password
Code:
@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 ? 😅
 

Similar threads

About this Thread

  • 14
    Replies
  • 3K
    Views
  • 12
    Participants
Last reply from:
kkklmnop

Online now

Members online
880
Guests online
1,218
Total visitors
2,098

Forum statistics

Threads
2,274,076
Posts
28,953,511
Members
1,235,046
Latest member
holu96
Back
Top