<?php
function test($d) {
return json_encode($d);
}
?>
<div id="servers">
<servers-component :serversList="{!! test($servers) !!}"></servers-component>
</div>
<div data-v-c34ba6f0="" class="servers" serverslist="[object Object]"><h1 data-v-c34ba6f0="">Servers</h1></div>
Dec 12 15:37:54 shadowvpn openvpn[4349]: 3.6.7 (default, Oct 22 2018, 11:32:17)
data = {
"username": username,
"password": password,
"ip": ip,
"port": port,
}
print(username)
print(data)
Dec 12 15:11:35 shadowvpn openvpn[4349]: verify.py -- Authorization attempt for username: 2WLjulhUGPAhNJ6bANmr1EXp3jjmQDа ip: 10.0.2.2 port: 39540
Dec 12 15:11:35 shadowvpn openvpn[4349]: 2WLjulhUGPAhNJ6bANmr1EXp3jjmQDа
Dec 12 15:11:35 shadowvpn openvpn[4349]: {'username': '2WLjulhUGPAhNJ6bANmr1EXp3jjmQD\udcd0\udcb0', 'password': 'IMAn5BifVgN2k1gyVwmr7fGhqG94li', 'ip': '10.0.2.2', 'port': '39540'}
root@shadowvpn:/etc/openvpn/scripts# echo '2WLjulhUGPAhNJ6bANmr1EXp3jjmQDа'
2WLjulhUGPAhNJ6bANmr1EXp3jjmQDа
{'username': '2WLjulhUGPAhNJ6bANmr1EXp3jjmQD\udcd0\udcb0', 'password': 'IMAn5BifVgN2k1gyVwmr7fGhqG94li', 'ip': '10.0.2.2', 'port': '18375'}
Dec 12 14:37:02 shadowvpn openvpn[4349]: Traceback (most recent call last):
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/etc/openvpn/scripts/verify.py", line 34, in <module>
Dec 12 14:37:02 shadowvpn openvpn[4349]: r = requests.post(url=config.verify_url, data=data)
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/usr/lib/python3/dist-packages/requests/api.py", line 112, in post
Dec 12 14:37:02 shadowvpn openvpn[4349]: return request('post', url, data=data, json=json, **kwargs)
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/usr/lib/python3/dist-packages/requests/api.py", line 58, in request
Dec 12 14:37:02 shadowvpn openvpn[4349]: return session.request(method=method, url=url, **kwargs)
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 506, in request
Dec 12 14:37:02 shadowvpn openvpn[4349]: prep = self.prepare_request(req)
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 449, in prepare_request
Dec 12 14:37:02 shadowvpn openvpn[4349]: hooks=merge_hooks(request.hooks, self.hooks),
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/usr/lib/python3/dist-packages/requests/models.py", line 308, in prepare
Dec 12 14:37:02 shadowvpn openvpn[4349]: self.prepare_body(data, files, json)
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/usr/lib/python3/dist-packages/requests/models.py", line 499, in prepare_body
Dec 12 14:37:02 shadowvpn openvpn[4349]: body = self._encode_params(data)
Dec 12 14:37:02 shadowvpn openvpn[4349]: File "/usr/lib/python3/dist-packages/requests/models.py", line 104, in _encode_params
Dec 12 14:37:02 shadowvpn openvpn[4349]: v.encode('utf-8') if isinstance(v, str) else v))
Dec 12 14:37:02 shadowvpn openvpn[4349]: UnicodeEncodeError: 'utf-8' codec can't encode characters in position 30-31: surrogates not allowed
root@shadowvpn:/# nmap -p 80 192.168.1.3
Starting Nmap 7.60 ( https://nmap.org ) at 2018-12-12 11:58 UTC
Nmap scan report for Ludmila-PC (192.168.1.3)
Host is up (0.0032s latency).
PORT STATE SERVICE
80/tcp filtered http
MAC Address: BC:EE:7B:5A:D4:AD (Asustek Computer)
Nmap done: 1 IP address (1 host up) scanned in 0.62 seconds