Linux id-dci-web1412.main-hosting.eu 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
LiteSpeed
: 2a02:4780:6:1512:0:19fc:adf1:2 | : 216.73.216.85
Cant Read [ /etc/named.conf ]
8.1.34
u435990001
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
go /
pkg /
mod /
golang.org /
x /
oauth2@v0.16.0 /
[ HOME SHELL ]
Name
Size
Permission
Action
amazon
[ DIR ]
dr-xr-xr-x
authhandler
[ DIR ]
dr-xr-xr-x
bitbucket
[ DIR ]
dr-xr-xr-x
cern
[ DIR ]
dr-xr-xr-x
clientcredentials
[ DIR ]
dr-xr-xr-x
endpoints
[ DIR ]
dr-xr-xr-x
facebook
[ DIR ]
dr-xr-xr-x
fitbit
[ DIR ]
dr-xr-xr-x
foursquare
[ DIR ]
dr-xr-xr-x
github
[ DIR ]
dr-xr-xr-x
gitlab
[ DIR ]
dr-xr-xr-x
google
[ DIR ]
dr-xr-xr-x
heroku
[ DIR ]
dr-xr-xr-x
hipchat
[ DIR ]
dr-xr-xr-x
instagram
[ DIR ]
dr-xr-xr-x
internal
[ DIR ]
dr-xr-xr-x
jira
[ DIR ]
dr-xr-xr-x
jws
[ DIR ]
dr-xr-xr-x
jwt
[ DIR ]
dr-xr-xr-x
kakao
[ DIR ]
dr-xr-xr-x
linkedin
[ DIR ]
dr-xr-xr-x
mailchimp
[ DIR ]
dr-xr-xr-x
mailru
[ DIR ]
dr-xr-xr-x
mediamath
[ DIR ]
dr-xr-xr-x
microsoft
[ DIR ]
dr-xr-xr-x
nokiahealth
[ DIR ]
dr-xr-xr-x
odnoklassniki
[ DIR ]
dr-xr-xr-x
paypal
[ DIR ]
dr-xr-xr-x
slack
[ DIR ]
dr-xr-xr-x
spotify
[ DIR ]
dr-xr-xr-x
stackoverflow
[ DIR ]
dr-xr-xr-x
twitch
[ DIR ]
dr-xr-xr-x
uber
[ DIR ]
dr-xr-xr-x
vk
[ DIR ]
dr-xr-xr-x
yahoo
[ DIR ]
dr-xr-xr-x
yandex
[ DIR ]
dr-xr-xr-x
.travis.yml
262
B
-r--r--r--
CONTRIBUTING.md
924
B
-r--r--r--
LICENSE
1.44
KB
-r--r--r--
README.md
1.55
KB
-r--r--r--
deviceauth.go
5.35
KB
-r--r--r--
deviceauth_test.go
2.17
KB
-r--r--r--
example_test.go
2.6
KB
-r--r--r--
go.mod
358
B
-r--r--r--
go.sum
2.3
KB
-r--r--r--
oauth2.go
13.59
KB
-r--r--r--
oauth2_test.go
19.55
KB
-r--r--r--
pkce.go
2.3
KB
-r--r--r--
token.go
5.8
KB
-r--r--r--
token_test.go
2.73
KB
-r--r--r--
transport.go
2.35
KB
-r--r--r--
transport_test.go
3.98
KB
-r--r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : deviceauth_test.go
package oauth2 import ( "context" "encoding/json" "fmt" "strings" "testing" "time" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" ) func TestDeviceAuthResponseMarshalJson(t *testing.T) { tests := []struct { name string response DeviceAuthResponse want string }{ { name: "empty", response: DeviceAuthResponse{}, want: `{"device_code":"","user_code":"","verification_uri":""}`, }, { name: "soon", response: DeviceAuthResponse{ Expiry: time.Now().Add(100*time.Second + 999*time.Millisecond), }, want: `{"expires_in":100,"device_code":"","user_code":"","verification_uri":""}`, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { begin := time.Now() gotBytes, err := json.Marshal(tc.response) if err != nil { t.Fatal(err) } if strings.Contains(tc.want, "expires_in") && time.Since(begin) > 999*time.Millisecond { t.Skip("test ran too slowly to compare `expires_in`") } got := string(gotBytes) if got != tc.want { t.Errorf("want=%s, got=%s", tc.want, got) } }) } } func TestDeviceAuthResponseUnmarshalJson(t *testing.T) { tests := []struct { name string data string want DeviceAuthResponse }{ { name: "empty", data: `{}`, want: DeviceAuthResponse{}, }, { name: "soon", data: `{"expires_in":100}`, want: DeviceAuthResponse{Expiry: time.Now().UTC().Add(100 * time.Second)}, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { begin := time.Now() got := DeviceAuthResponse{} err := json.Unmarshal([]byte(tc.data), &got) if err != nil { t.Fatal(err) } if !cmp.Equal(got, tc.want, cmpopts.IgnoreUnexported(DeviceAuthResponse{}), cmpopts.EquateApproxTime(time.Second+time.Since(begin))) { t.Errorf("want=%#v, got=%#v", tc.want, got) } }) } } func ExampleConfig_DeviceAuth() { var config Config ctx := context.Background() response, err := config.DeviceAuth(ctx) if err != nil { panic(err) } fmt.Printf("please enter code %s at %s\n", response.UserCode, response.VerificationURI) token, err := config.DeviceAccessToken(ctx, response) if err != nil { panic(err) } fmt.Println(token) }
Close