Commit graph

1103 commits

Author SHA1 Message Date
yungtravla
a465116160
small consistency fix 2018-05-10 02:39:54 +10:00
yungtravla
c1b63f6257
Merge pull request #274 from bettercap/add-js-error-traceback
print traceback for more js errors
2018-05-10 01:12:14 +10:00
yungtravla
46f3d09612
print traceback for js errors 2018-05-10 01:11:32 +10:00
Simone Margaritelli
a5d26a545f
Merge pull request #273 from bettercap/add-js-error-traceback
Print traceback with line numbers for JS errors
2018-05-09 15:46:24 +02:00
yungtravla
58daec15ba
add js error traceback 2018-05-09 22:56:13 +10:00
yungtravla
e95623df5b
Update base_proxy_script.go 2018-05-09 22:39:38 +10:00
yungtravla
cfe5f9f76b
added missing comma 2018-05-07 18:44:53 +10:00
Simone Margaritelli
312f9cd2fe
Merge pull request #269 from yungtravla/master
Enable reading/writing of request scheme in HTTP proxy
2018-05-07 10:22:32 +02:00
yungtravla
1999665429
Enable reading/writing of request scheme in HTTP proxy 2018-05-07 15:29:49 +10:00
Simone Margaritelli
1c474c85d2
Merge pull request #267 from h-a-t/master
Dockerfile rework, Fix #123, #127 & #231, includes caplets
2018-05-06 21:16:38 +02:00
H.A.T
55c0cb1ce0
Dockerfile rework, Fixing #123, #127 & #231, including caplets 2018-05-06 00:57:23 +01:00
evilsocket
5041267be9
fixed net.FindGateway if there's a VPN interface active 2018-05-03 13:03:52 +02:00
Simone Margaritelli
407fd392b9
Merge pull request #265 from bettercap/revert-259-minor-refactors
Revert "Minor refactors using golint"
2018-05-03 12:31:54 +02:00
Simone Margaritelli
5328ced392
Revert "Minor refactors using golint" 2018-05-03 12:31:42 +02:00
Simone Margaritelli
9196be7a8b
Merge pull request #264 from picatz/fix-263
fix undefined: usr bug in core
2018-05-03 12:06:22 +02:00
Kent Gruber
f623505816 fix undefined: usr bug in core
The following fixes the issue for me when I run the following test:

$ go test -v -run=TestCoreExpandPath ./core
2018-05-03 01:54:23 -04:00
Simone Margaritelli
eaa5dab166
Merge pull request #262 from picatz/test-network-aliases
add test for aliases related functions in network package
2018-05-02 20:31:05 +02:00
Kent Gruber
db23b34b85 change type Alaises to Aliases
one day I will learn how to spell
2018-05-02 14:24:47 -04:00
Kent Gruber
871bbde89f make coherent lan test due to changes in aliases
messing with the Aliases test seems to cause issues for the lan test,
this fixes the error
2018-05-02 14:08:57 -04:00
Kent Gruber
0b55b645b1 add test for Find function 2018-05-02 13:58:42 -04:00
Kent Gruber
b387ed86e6 add test for Set function 2018-05-02 13:58:27 -04:00
Kent Gruber
e751ecf6a0 add test for Get function 2018-05-02 13:57:39 -04:00
Kent Gruber
383aa509c2 add test for Save function 2018-05-02 13:57:19 -04:00
Kent Gruber
aab5018de8 add test for saveUnlocked function 2018-05-02 13:57:03 -04:00
Kent Gruber
b91a6b51b3 add test for LoadAliases function 2018-05-02 13:56:44 -04:00
Kent Gruber
7180f6524e add buildExampleAlaises helper function
to be used later
2018-05-02 13:56:09 -04:00
Kent Gruber
f3487ad6d2 start adding test for aliases related functions in network package
this is the base for the rest of the tests
2018-05-02 13:55:36 -04:00
Simone Margaritelli
674188283f
Merge pull request #261 from picatz/test-network-meta
add test for meta related functions in network package
2018-05-02 19:34:32 +02:00
Kent Gruber
506c5722a8 loosen test for GetIntsWith function
getting weird stuff with this test… probably because I’m not
understanding it properly or something to write a coherent test for it.
2018-05-02 13:22:36 -04:00
Kent Gruber
7a6cf8f197 add test for Empty function 2018-05-02 13:20:38 -04:00
Kent Gruber
db7c2d0a74 add test for Each function 2018-05-02 13:18:52 -04:00
Kent Gruber
21c0fc43ca add test for GetOr function 2018-05-02 13:18:30 -04:00
Kent Gruber
00d6100214 add test for SetInts function 2018-05-02 13:18:12 -04:00
Kent Gruber
b8a0b86282 add test for GetIntsWith function with documented TODO
I didn’t really understand this function entirely.
2018-05-02 13:17:46 -04:00
Kent Gruber
e4352e8a98 add test for Set function 2018-05-02 13:17:06 -04:00
Kent Gruber
ec3227a16f add test for MarshalJSON function 2018-05-02 13:16:49 -04:00
Kent Gruber
889df698d1 add test for NewMeta function 2018-05-02 13:16:30 -04:00
Kent Gruber
d18491aff8 add buildExampleMeta helper function
to be used later in the rest of the tests
2018-05-02 13:15:45 -04:00
Kent Gruber
db8e2399b0 start adding test for meta related functions in network package 2018-05-02 13:15:24 -04:00
Simone Margaritelli
a87d84be76
Merge pull request #260 from picatz/minor-refactor-to-packets-queue
replace q.Protos[name] += 1 with q.Protos[name]++
2018-05-02 17:52:31 +02:00
Kent Gruber
6414f00df7 replace q.Protos[name] += 1 with q.Protos[name]++
minor refactor from golint:
should replace q.Protos[name] += 1 with q.Protos[name]++
2018-05-02 11:48:26 -04:00
Simone Margaritelli
f35a8b98ac
Merge pull request #259 from picatz/minor-refactors
Minor refactors using golint
2018-05-02 10:21:11 +02:00
Simone Margaritelli
fc070138bf
Merge pull request #257 from picatz/test-network-wifi
add basic test for WiFi related functions in network package
2018-05-02 10:20:28 +02:00
Kent Gruber
ca42274656 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:29 -04:00
Kent Gruber
f09125b166 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:26 -04:00
Kent Gruber
bfdd7db018 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:21 -04:00
Kent Gruber
f128d3a035 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:19 -04:00
Kent Gruber
6a69369491 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:16 -04:00
Kent Gruber
c6bbbca93f if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:13 -04:00
Kent Gruber
5619127f93 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:10 -04:00