morpheusthewhite / nordpy

A gui application to connect automatically to the recommended NordVPN server
GNU General Public License v3.0
105 stars 16 forks source link

Path with space is not escaped #50

Closed zyoc closed 3 years ago

zyoc commented 3 years ago

Hi, had no problems on LM 19.3 but get the below trying to install on LM 20. No matter what I select on the last line the Terminal closes.

nordpy errors

morpheusthewhite commented 3 years ago

Did you install nordpy with support for obfuscated server? If yes, can you try to install it without this feature and see if you get any error?

zyoc commented 3 years ago

No I selected No at that prompt

Sent from ProtonMail mobile

-------- Original Message -------- On Jan 20, 2021, 6:37 AM, morpheusthewhite wrote:

Did you install nordpy with support for obfuscated server? If yes, can you try to install it without this feature and see if you get any error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

morpheusthewhite commented 3 years ago

And what happens if you try to start nordpy from command line (./nordpy.py)?

zyoc commented 3 years ago

I haven't tried that yet but will when I get home and let you know......thx!

Sent from ProtonMail mobile

-------- Original Message -------- On Jan 20, 2021, 7:04 AM, morpheusthewhite wrote:

And what happens if you try to start nordpy from command line (./nordpy.py)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zyoc commented 3 years ago

I get the below...

zyoc@zyoc:~$ ./nordpy.py bash: ./nordpy.py: No such file or directory

Just tried to install again and go the below before the Terminal window closed by itself again...

nordpy errors 002

morpheusthewhite commented 3 years ago

I get the below...

zyoc@zyoc:~$ ./nordpy.py bash: ./nordpy.py: No such file or directory

In the directory you cloned/downloaded, containing the installation script

zyoc commented 3 years ago

That worked, but getting this error...

nord py install 005

zyoc commented 3 years ago

I think this text file was generated when running the install.sh?

nordpy.desktop 376 bytes
[Desktop Entry]

Type=Application Version=1.0 Name=NordPy Comment=NordVPN client application for connecting to recommended servers Path=/home/zyoc/Downloads/NORD_VPN STUFF/nordpy-1.3.3 Exec="/home/zyoc/Downloads/NORD_VPN STUFF/nordpy-1.3.3/nordpy.py" Icon=/home/zyoc/Downloads/NORD_VPN STUFF/nordpy-1.3.3/media/nordvpn.png Terminal=false Categories=Internet;System;Utilities;

morpheusthewhite commented 3 years ago

I think this text file was generated when running the install.sh?

nordpy.desktop 376 bytes [Desktop Entry]

Type=Application Version=1.0 Name=NordPy Comment=NordVPN client application for connecting to recommended servers Path=/home/zyoc/Downloads/NORD_VPN STUFF/nordpy-1.3.3 Exec="/home/zyoc/Downloads/NORD_VPN STUFF/nordpy-1.3.3/nordpy.py" Icon=/home/zyoc/Downloads/NORD_VPN STUFF/nordpy-1.3.3/media/nordvpn.png Terminal=false Categories=Internet;System;Utilities;

Yes it is

morpheusthewhite commented 3 years ago

The is that you are using a folder whose path contains space.

I will soon try to escape it, in the meantime you can just rename the folder and it should work

morpheusthewhite commented 3 years ago

It should now work if you update nordpy

zyoc commented 3 years ago

"The is that you are using a folder whose path contains space."

Which folder is that? I did try just copying the nordpy-1.3.3 folder to the desktop and installing from there but same results.

zyoc commented 3 years ago

Not sure if I updated properly or not (fairly new to Linux) as I'm still getting an error...

nord py install 006

`zyoc@zyoc:~/Downloads/nordpy-1.3.3$ ./nordpy.py Read a factor scale of 1.0 and False Font factor: 1.1111111111111112 captured grep Verifing saved file File is correct Retrieved stats Retrieved stats resulting url: https://nordvpn.com/wp-admin/admin-ajax.php?action=servers_recommendations&filters={%22servers_groups%22:11} Best server retrieved: us5067.nordvpn.com Checking if exists /home/zyoc/Downloads/nordpy-1.3.3/ovpn_tcp/us5067.nordvpn.com.tcp.ovpn Updating setting file Storing credentials in '/home/zyoc/Downloads/nordpy-1.3.3/credentials' with openvpn compatible 'auth-user-pass' file format

Awesome, the credentials have been saved in '/home/zyoc/Downloads/nordpy-1.3.3/credentials'

Turning on killswitch Default interface: enp7s0 IP and port of the VPN server: 212.102.45.7 443 Network address on enp7s0: 192.168.0.0/24 Launching tcp connection with 212.102.45.7:443 on enp7s0 (on network 192.168.0.0/24) [OPENVPN]: Wed Jan 20 16:15:53 2021 OpenVPN 2.4.4 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jan 20 2021

[OPENVPN]: Wed Jan 20 16:15:53 2021 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10

[OPENVPN]: Wed Jan 20 16:15:53 2021 WARNING: --ping should normally be used with --ping-restart or --ping-exit

[OPENVPN]: Wed Jan 20 16:15:53 2021 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

[OPENVPN]: Wed Jan 20 16:15:53 2021 NOTE: --fast-io is disabled since we are not using UDP

[OPENVPN]: Wed Jan 20 16:15:53 2021 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication

[OPENVPN]: Wed Jan 20 16:15:53 2021 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication

[OPENVPN]: Wed Jan 20 16:15:53 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]212.102.45.7:443

[OPENVPN]: Wed Jan 20 16:15:53 2021 Socket Buffers: R=[131072->131072] S=[16384->16384]

[OPENVPN]: Wed Jan 20 16:15:53 2021 Attempting to establish TCP connection with [AF_INET]212.102.45.7:443 [nonblock]

[OPENVPN]: Wed Jan 20 16:15:54 2021 TCP connection established with [AF_INET]212.102.45.7:443

[OPENVPN]: Wed Jan 20 16:15:54 2021 TCP_CLIENT link local: (not bound)

[OPENVPN]: Wed Jan 20 16:15:54 2021 TCP_CLIENT link remote: [AF_INET]212.102.45.7:443

[OPENVPN]: Wed Jan 20 16:15:54 2021 TLS: Initial packet from [AF_INET]212.102.45.7:443, sid=ca7590e5 52d87f97

[OPENVPN]: Wed Jan 20 16:15:54 2021 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this

[OPENVPN]: Wed Jan 20 16:15:54 2021 VERIFY OK: depth=2, C=PA, O=NordVPN, CN=NordVPN Root CA

[OPENVPN]: Wed Jan 20 16:15:54 2021 VERIFY OK: depth=1, C=PA, O=NordVPN, CN=NordVPN CA5

[OPENVPN]: Wed Jan 20 16:15:54 2021 VERIFY KU OK

[OPENVPN]: Wed Jan 20 16:15:54 2021 Validating certificate extended key usage

[OPENVPN]: Wed Jan 20 16:15:54 2021 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication

[OPENVPN]: Wed Jan 20 16:15:54 2021 VERIFY EKU OK

[OPENVPN]: Wed Jan 20 16:15:54 2021 VERIFY OK: depth=0, CN=us5067.nordvpn.com

[OPENVPN]: Wed Jan 20 16:15:56 2021 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 4096 bit RSA

[OPENVPN]: Wed Jan 20 16:15:56 2021 [us5067.nordvpn.com] Peer Connection Initiated with [AF_INET]212.102.45.7:443

[OPENVPN]: Wed Jan 20 16:15:57 2021 AUTH: Received control message: AUTH_FAILED

Turning off killswitch looking for iptables in /home/zyoc/Downloads/nordpy-1.3.3/stored_iptables ==^A
`

morpheusthewhite commented 3 years ago

"The is that you are using a folder whose path contains space."

Which folder is that? I did try just copying the nordpy-1.3.3 folder to the desktop and installing from there but same results.

The folder is "NORD_VPN STUFF"

morpheusthewhite commented 3 years ago

To be sure, git clone this repository, install it again and launch it. In case you get again that error check your credentials

zyoc commented 3 years ago

Now nordpy is in the menu and launches fine but won't allow for selecting a specific server. The list pulls up but after choosing a server nothing happens.

I can close the list and choose connect automatically but get the error below.

nord py install 007

nord py install 008

morpheusthewhite commented 3 years ago

The list of server has a confirm button which is hidden because of the size of the window, so try to resize it and try again.

Regarding the error for the automatic connection, can you start nordpy from the command line and paste here the content on the terminal after the error popup is shown?

zyoc commented 3 years ago

Everything seems to work using the cmd line. Get the same error as above starting from nordpy in the menu.

Something new is when I disconnect now from nordpy I lose the internet connection completely and have to restart the PC to get it back.

morpheusthewhite commented 3 years ago

I think the disconnection error are due to the fact the some space in the path eventually (I am not sure if there are so please confirm it), so if you move it to another folder it should work

zyoc commented 3 years ago

This time I re downloaded nordpy directly to the Downloads folder so no spaces in the path. I appreciate all your time in helping troubleshoot my issue!

Sent from ProtonMail mobile

-------- Original Message -------- On Jan 21, 2021, 8:30 AM, morpheusthewhite wrote:

I think the disconnection error are due to the fact the some space in the path eventually (I am not sure if there are so please confirm it), so if you move it to another folder it should work

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zyoc commented 3 years ago

Thought I'd try uninstalling everything, including Nordvpn and reinstalling with still no luck installing from the install.sh. Then tried using the cmd line installation from both the Downloads Folder and the Desktop Folder and got a different error from each folder...

DOWNLOADS FOLDER nord py install 009

nord py install 009a

DESKTOP FOLDER nord py install 010

nord py install 010a

zyoc commented 3 years ago

Joy, I have it working now!! :)

This is what I did... I installed from the nordpy folder using sudo ./install.sh It installed and I have the nordpy icon in the menu. I clicked on the icon, it opened, asked for the root password and I entered the password for my machine, and chose "select manually, and it stated "wrong credentials". I closed nordpy and reopened it and chose the select server automatically option this time and now the prompt was for my username and password for Nordvpn. I entered those credentials and now everything works (selecting servers manually or automatically).

Thank you so much for this little program!!!

nord py install 011

nordpy connected

morpheusthewhite commented 3 years ago

So the message "wrong credentials" appeared without asking for username and password for the manual selection?!?

zyoc commented 3 years ago

So the message "wrong credentials" appeared without asking for username and password for the manual selection?!?

Yes that's correct. Once I entered the credentials after I was prompted using the automatic option, both connection options now work.

morpheusthewhite commented 3 years ago

I think it depends on some of the server listed, I got some errors too. Also when copy-pasting username and password I got wrong credentials after entering them, but I cannot get nordpy avoiding asking me credentials at the first time