Last active
December 27, 2021 23:10
-
-
Save exploitio/1159ebb6465d568e9364d7f55b8f7a9f to your computer and use it in GitHub Desktop.
HACKTHEBOX.EU Generate Invite Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function verifyInviteCode(code) { | |
var formData = { | |
"code": "YLPWT-OHRVC-*****-*****-*****" | |
}; | |
$.ajax({ | |
type: "POST", | |
dataType: "json", | |
data: formData, | |
url: '/api/invite/verify', | |
success: function(response) { | |
console.log(response) | |
}, | |
error: function(response) { | |
console.log(response) | |
} | |
}) | |
} | |
function makeInviteCode() { | |
$.ajax({ | |
type: "POST", | |
dataType: "json", | |
url: '/api/invite/how/to/generate', | |
success: function(response) { | |
console.log(response) | |
}, | |
error: function(response) { | |
console.log(response) | |
} | |
}) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function postRequest() { | |
$.ajax({ | |
type: "POST", | |
dataType: "json", | |
url: '/api/invite/generate', | |
success: function(response) { | |
console.log(response) | |
}, | |
error: function(response) { | |
console.log(response) | |
} | |
}) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install openvpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo openvpn file-name.ovpn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment