Commit graph

31 commits

Author SHA1 Message Date
evilsocket
08f3766d30 new: new /api/session/modules route 2018-09-29 12:48:32 +02:00
evilsocket
87ac32cd6b
misc: small fix or general refactoring i did not bother commenting 2018-09-29 02:34:27 +02:00
evilsocket
8f7f6545b1 new: new api.rest.alloworigin parameter to customize the Access-Control-Allow-Origin header of the server. 2018-09-29 02:10:46 +02:00
evilsocket
319b6059a5
fix: api.rest is now on http and port 8081 by default 2018-09-17 11:23:49 +02:00
evilsocket
1afc21ac64
fix: displaying a warning message if the api.rest module authentication is disabled 2018-09-12 12:58:57 +02:00
evilsocket
1f9c151089
fix: api.rest will switch to http if provided key and certificate paths are empty 2018-08-30 12:52:01 +03:00
evilsocket
f9656e1d1d
new: disabling api.rest authentication if username or password are empty 2018-08-29 16:00:17 +03:00
evilsocket
3b6ea499dd
misc: small fix or general refactoring i did not bother commenting 2018-08-27 10:14:31 +02:00
evilsocket
b57e329632
misc: small fix or general refactoring i did not bother commenting 2018-08-25 11:50:23 +02:00
evilsocket
7a08366516
new: single https certificate / authority fields can now be customized via dedicated module parameters ( http.server, https.proxy and api.rest ) 2018-08-17 14:11:50 +02:00
evilsocket
9f0b4a9502
fix: fixed events buffering, now no event is lost with multiple listeners (fixes #266) 2018-05-12 12:16:15 +02:00
evilsocket
7919cda5ec
lint driven refactoring 2018-04-24 16:33:38 +02:00
KhasMek
4b8d4aeb1b api: switch request router and add more paths
This switches the url router to gorilla and
  adds the following routes.

  - /api/events
  - /api/session
  - /api/session/ble
  - /api/session/ble/{mac}
  - /api/session/env
  - /api/session/gateway
  - /api/session/interface
  - /api/session/lan
  - /api/session/lan/{mac}
  - /api/session/options
  - /api/session/packets
  - /api/session/started-at
  - /api/session/wifi
  - /api/session/wifi/{mac}

  where {mac} is the mac address of a device.
2018-03-12 18:42:32 -06:00
evilsocket
1e7d99433e
refact: refactored module status checks in Configure methods for consistency 2018-03-07 12:47:15 +01:00
evilsocket
5ad1a17118 new: implemented optional websocket for /api/events 2018-03-06 13:54:37 +01:00
evilsocket
b243e67828 some progress but still doesn't work 2018-03-01 19:30:10 +01:00
evilsocket
894cbe76a1 refact: refactored api.rest to avoid using global variables 2018-03-01 18:06:42 +01:00
evilsocket
63cea73f8e misc: small fix or general refactoring i did not bother commenting 2018-02-23 00:07:09 +01:00
evilsocket
1728ed63f1 refact: we got rid of huge GIN dependency by using core golang libs for api.rest module 2018-02-22 16:59:23 +01:00
evilsocket
9c6eb70eb3 refact: refactored module SetRunning method (fixes #49) 2018-02-11 01:43:48 +01:00
evilsocket
6c4a13b5bc new: implemented basic https proxy (fixes #3) 2018-01-14 16:13:47 +01:00
evilsocket
fd18dffd1a refact: refactored api.rest module to use GIN and have better security (fixes #11) 2018-01-14 15:10:11 +01:00
evilsocket
2454a669bb fix: using spoofed names for TLS certificate generation in order to be less fingerprintable (fixes #12) 2018-01-14 14:12:11 +01:00
evilsocket
fb593af38d balls 2018-01-13 13:33:04 +01:00
evilsocket
52629c0e9e fix: fixed api.rest module 2018-01-13 02:10:16 +01:00
evilsocket
291e87de39 refact: some refactoring to proxy modules 2018-01-11 19:53:14 +01:00
evilsocket
e543582257 refact: refactored module parameters api 2018-01-11 00:27:53 +01:00
evilsocket
31de46c14c new: improved menu and per module help 2018-01-09 22:23:11 +01:00
evilsocket
e36bcacf00 refact: centralized logging into log package using Session singleton instance 2018-01-08 12:25:26 +01:00
evilsocket
d052758efc refact: renamed api.rest TLS files 2018-01-08 09:50:35 +01:00
evilsocket
64221a126d refact: session/modules -> modules 2018-01-08 09:28:46 +01:00
Renamed from session/modules/api_rest.go (Browse further)