Skip to content

Commit 29ed9ad

Browse files
author
Quang Luong
committed
init
0 parents  commit 29ed9ad

18 files changed

+688
-0
lines changed

.gitignore

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### JetBrains template
3+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
4+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
5+
6+
# User-specific stuff
7+
.idea/**/workspace.xml
8+
.idea/**/tasks.xml
9+
.idea/**/usage.statistics.xml
10+
.idea/**/dictionaries
11+
.idea/**/shelf
12+
13+
# Generated files
14+
.idea/**/contentModel.xml
15+
16+
# Sensitive or high-churn files
17+
.idea/**/dataSources/
18+
.idea/**/dataSources.ids
19+
.idea/**/dataSources.local.xml
20+
.idea/**/sqlDataSources.xml
21+
.idea/**/dynamic.xml
22+
.idea/**/uiDesigner.xml
23+
.idea/**/dbnavigator.xml
24+
25+
# Gradle
26+
.idea/**/gradle.xml
27+
.idea/**/libraries
28+
29+
# Gradle and Maven with auto-import
30+
# When using Gradle or Maven with auto-import, you should exclude module files,
31+
# since they will be recreated, and may cause churn. Uncomment if using
32+
# auto-import.
33+
# .idea/artifacts
34+
# .idea/compiler.xml
35+
# .idea/modules.xml
36+
# .idea/*.iml
37+
# .idea/modules
38+
# *.iml
39+
# *.ipr
40+
41+
# CMake
42+
cmake-build-*/
43+
44+
# Mongo Explorer plugin
45+
.idea/**/mongoSettings.xml
46+
47+
# File-based project format
48+
*.iws
49+
50+
# IntelliJ
51+
out/
52+
53+
# mpeltonen/sbt-idea plugin
54+
.idea_modules/
55+
56+
# JIRA plugin
57+
atlassian-ide-plugin.xml
58+
59+
# Cursive Clojure plugin
60+
.idea/replstate.xml
61+
62+
# Crashlytics plugin (for Android Studio and IntelliJ)
63+
com_crashlytics_export_strings.xml
64+
crashlytics.properties
65+
crashlytics-build.properties
66+
fabric.properties
67+
68+
# Editor-based Rest Client
69+
.idea/httpRequests
70+
71+
# Android studio 3.1+ serialized cache file
72+
.idea/caches/build_file_checksums.ser
73+
74+
### Kotlin template
75+
# Compiled class file
76+
*.class
77+
78+
# Log file
79+
*.log
80+
81+
# BlueJ files
82+
*.ctxt
83+
84+
# Mobile Tools for Java (J2ME)
85+
.mtj.tmp/
86+
87+
# Package Files #
88+
*.jar
89+
*.war
90+
*.nar
91+
*.ear
92+
*.zip
93+
*.tar.gz
94+
*.rar
95+
96+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
97+
hs_err_pid*
98+
99+
### Java template
100+
# Compiled class file
101+
102+
# Log file
103+
104+
# BlueJ files
105+
106+
# Mobile Tools for Java (J2ME)
107+
108+
# Package Files #
109+
110+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
111+
112+
### Gradle template
113+
.gradle
114+
/build/
115+
116+
# Ignore Gradle GUI config
117+
gradle-app.setting
118+
119+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
120+
!gradle-wrapper.jar
121+
122+
# Cache of project
123+
.gradletasknamecache
124+
125+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
126+
# gradle/wrapper/gradle-wrapper.properties

.idea/$CACHE_FILE$

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/markdown-navigator-enh.xml

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/markdown-navigator.xml

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# How to use
2+
3+
* Audit the code, reverse the binary (seriously, don't just trust me)
4+
* Go to the website that manages 2FA
5+
* e.g. not-start-portal, not-some-university portals
6+
* Add a new phone
7+
* Input your phone number and those kinds of stuff
8+
* Just choose Android (you are gonna use different 2FA client anyway)
9+
* Do not use the QR code. Choose the option which sends the activation
10+
link to your email
11+
* The continue button is disabled, for now)
12+
* You should see the link of the form
13+
`https://m-xxxxxxxx.duosecurity.com/android/XXXXXXXXXXXXXXXXXXXX`
14+
* If you don't, just click on the link and check the url bar
15+
* Copy it
16+
* Run the application (in the `bin` directory)
17+
* Paste the link in
18+
* Wait
19+
* Click continue on the web page (not it should be highlighted)
20+
* Copy the hopt secret and use it with whatever authenticator you
21+
want. (Note: Duo uses *counter based* hopt)
22+
* Example: you can use
23+
[this extension](https://github.com/Authenticator-Extension/Authenticator)
24+
in browser
25+
* Edit -> Manual Entry
26+
* Counter based; name = any thing; secret is the hopt you get from
27+
the app
28+
* Done. Now you can get your passcode right in your browser
29+
30+
# Is this secure?
31+
32+
No. Just like the Duo App. (you should not use the browser extension by the way; but if you do remember to set the password or encrypt it)
33+
34+
# Alternative (preferred) methods
35+
36+
Duo allows using FIDO devices to authenticate (that is actually more
37+
secure than using phones tbh). It also supports TouchID (only Apple and Chrome).
38+
However, ~~i am broke~~ another solution supporting all platforms is using a
39+
u2f emulation -> add u2f devices to Duo
40+
41+
* Linux: https://github.com/danstiner/rust-u2f (remember to set udev rules depending on your distro)
42+
* Win: https://github.com/SoftU2F/SoftU2F-Win
43+
* Mac: https://github.com/github/SoftU2F
44+
45+
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=C44YKYMVNL4TA)

0 commit comments

Comments
 (0)