hotspot-login 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hl.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac74584d05880d4c18c237b33deec5a82395906b
|
4
|
+
data.tar.gz: 5b7596106e3ffeb16fddcf942fad28e645e59147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06f289ec9e5d6df29da02e1dee6bb6c858688f16dea7c2023965d23e5cd36e1aeb2f991b6401216579c5c945a00498dd1784182556327583d4b6ce8c2ca9fc3e
|
7
|
+
data.tar.gz: 0e660ece6daffa14bc2e32bf1fd129a0a2331338cbaa84b1fa7f5aac02e4e1a1f9f7edc29647e62456f0cbb226c81a3a2313594a85f15ab47f54cb804f136b12
|
data/lib/hl.rb
CHANGED
@@ -86,6 +86,10 @@ class Hotspot
|
|
86
86
|
end
|
87
87
|
|
88
88
|
class Sfr < Hotspot
|
89
|
+
def hotspot?
|
90
|
+
info.host == "hotspot.wifi.sfr.fr"
|
91
|
+
end
|
92
|
+
|
89
93
|
def auth
|
90
94
|
query = params.merge!({username: @user, username2: @user, password: @password, conditions: "on", lang: "fr", connexion: "Connexion", accessType: "neuf"})
|
91
95
|
t = redirect? post("https://hotspot.wifi.sfr.fr/nb4_crypt.php", query)
|
@@ -94,6 +98,10 @@ class Sfr < Hotspot
|
|
94
98
|
end
|
95
99
|
|
96
100
|
class UPPA < Hotspot
|
101
|
+
def hotspot?
|
102
|
+
info.host == "wism.univ-pau.fr"
|
103
|
+
end
|
104
|
+
|
97
105
|
def auth
|
98
106
|
query = params.merge!({username: @user, password: @password, buttonClicked: 4, info_msg:nil, info_flag: 0, err_msg: nil, err_flag: 0})
|
99
107
|
post("https://wism.univ-pau.fr/login.html", query)
|
@@ -101,6 +109,10 @@ class UPPA < Hotspot
|
|
101
109
|
end
|
102
110
|
|
103
111
|
class FreeWifi < Hotspot
|
112
|
+
def hotspot?
|
113
|
+
info.host == "wifi.free.fr"
|
114
|
+
end
|
115
|
+
|
104
116
|
def auth
|
105
117
|
query = params.merge!({login: @user, password: @password, submit: "Valider"})
|
106
118
|
post("https://wifi.free.fr/Auth", query)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotspot-login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Jeser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Hotspot-login is a ruby script. It goal is connected hotspot like "Sfr
|
14
14
|
Wifi", "FreeWifi" and "UPPA"
|