Skip to content

Commit

Permalink
Merge pull request #12 from nilsstreedain/change-domain
Browse files Browse the repository at this point in the history
Change domain and add install script
  • Loading branch information
nilsstreedain authored Apr 27, 2023
2 parents ce7165a + 8f031bd commit ccd30c2
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 7 deletions.
2 changes: 1 addition & 1 deletion duo-bypass.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function duoBypass() {
const apiParams = urlInput.value.split('=').pop().split('-');

// Post new device to DUO API
const response = await fetch('https://duo-bypass.com/api', {
const response = await fetch('https://duo-bypass.nilsstreedain.com/api', {
method: 'POST',
headers: {
'Accept': 'application/json',
Expand Down
5 changes: 5 additions & 0 deletions script/Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 'brew install'
brew "jq"
brew "coreutils"
brew "qrencode"
brew "oath-toolkit"
15 changes: 12 additions & 3 deletions script/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# duo-bypass (script)
Script to generate valid HOTP key from DUO Security credentials allowing use of 3rd party and open source authentication applications such as Google Authenticator. An automatic installer, along with a online version is currently in progress.

## Install:
An automatic install script is in progress, for the time being, this manual process is required.
## Installation Script
For quick installaion, follow the instructions below, otherwise. If you are not comfortable with installaion via a script, follow the steps in the [Manual Install](#manual-install) section below.

WARNING: Automatic script requires Homebrew to be setup/installed. If you do not have homebrew installed, read more [here](brew.sh).

Paste the command below in terminal and enter your password to install duo-bypass
```bash
curl -sSL https://raw.githubusercontent.com/nilsstreedain/duo-bypass/main/script/install.sh | bash
```

## Manual Install
1. Install dependencies using apt-get or homebrew
- jq
- coreutils
Expand All @@ -15,7 +24,7 @@ chmod +x /usr/local/bin/duo-bypass
```


## Setup:
## Setup
1. Install `duo-bypass`
2. Navigate to your DUO Security Portal
3. Login with your current DUO 2fa method
Expand Down
2 changes: 1 addition & 1 deletion script/duo-bypass
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh +x

# duo-workaround
# duo-bypass
#
# Script to generate valid HOTP key from DUO Security credentials allowing
# use of 3rd party and open source authentication applications.
Expand Down
18 changes: 18 additions & 0 deletions script/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh +x

# install.sh
#
# duo-bypass
#
# Script for installing the duo-bypass script
#
# Created by Nils Streedain on 4/26/23.

# Install Homebrew dependencies
brew bundle --file=<(curl -fsSL https://raw.githubusercontent.com/nilsstreedain/duo-bypass/main/script/Brewfile)

# Install script to /usr/local/bin/ folder
sudo curl https://raw.githubusercontent.com/nilsstreedain/duo-bypass/main/script/duo-bypass -sSLo "/usr/local/bin/duo-bypass"

# Give script executable permission
sudo chmod +x /usr/local/bin/duo-bypass
4 changes: 2 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "duo-bypass"
main = "worker.js"
compatibility_date = "2022-10-08"
compatibility_date = "2023-04-26"

workers_dev = false
route = { pattern = "duo-bypass.com/api", zone_name = "duo-bypass.com" }
route = { pattern = "duo-bypass.nilsstreedain.com/api", zone_name = "nilsstreedain.com" }
minify = true

0 comments on commit ccd30c2

Please sign in to comment.