Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netsh: profiles: change findstr pattern not affected by i18n #10

Closed
wants to merge 1 commit into from
Closed

Conversation

ipodipad
Copy link

@ipodipad ipodipad commented Jul 5, 2020

This feature closes #7

@ipodipad
Copy link
Author

ipodipad commented Jul 5, 2020

@warengonzaga

Here's what I tested

This would be ok for any other language.

C:\WINDOWS\system32>netsh wlan show profiles | findstr /R /C:"[ ]:[ ]"
    모든 사용자 프로필 : ILOVEYJ
    모든 사용자 프로필 : LG_Smart_Laundry2_2234
    모든 사용자 프로필 : ILOVEYJ-ext
    모든 사용자 프로필 : 망치질작작좀제발
    모든 사용자 프로필 : The Residence
    모든 사용자 프로필 : SODATA6606
    모든 사용자 프로필 : Moonimaa Lounge
    모든 사용자 프로필 : Home
    모든 사용자 프로필 : AirportWiFi
    모든 사용자 프로필 : @Hyatt_WiFi
    모든 사용자 프로필 : #WiFi@Changi
    모든 사용자 프로필 : ILOVEYJ2
    모든 사용자 프로필 : beardpapas-floor2
    모든 사용자 프로필 : U+village
    모든 사용자 프로필 : Hacker
    모든 사용자 프로필 : FREE_U+zone
    모든 사용자 프로필 : G4_3093
    모든 사용자 프로필 : ILOVELG
    모든 사용자 프로필 : Public WiFi Free
    모든 사용자 프로필 : LG_Smart_Laundry
    모든 사용자 프로필 : Public WiFi FREE

@warengonzaga
Copy link
Owner

Thank you @ipodipad! I will test this on my local and get back to you... appreciate your effort.

…of keyword itself

Previously "Key contents" is used to extract passphrase from the console
netsh command. However, Microsoft internally hard-coded i18n elements in
the netsh and could not be reverted to English unless installing
language pack for another Language,
Thus it distracts for this program to parse sementic without making an
effort to translate the keyword

So, intead of keyword, use line number where it print out to the console
to provide service not being affected by i18n.

This feature closes #4
This feature closes #7
@ipodipad
Copy link
Author

ipodipad commented Jul 5, 2020

I'll close this (this only for #7 ) and I'll squash for #4 and re-upload

@ipodipad ipodipad closed this Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No Wireless Interface Detected!!! - but network card exist (lang:Korean)
2 participants