Created
June 23, 2015 06:05
-
-
Save xntrik/f13ae896f1b6bc0aaaae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef3 ± rake integration | |
Starting BeEF (wait a few seconds)..................... | |
export DISPLAY=:0; cd test/integration;ruby -W0 ts_integration.rb | |
Loaded suite BeEF Integration Test Suite | |
Started | |
...... | |
Finished in 22.123181 seconds. | |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
6 tests, 33 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications | |
100% passed | |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
0.27 tests/s, 1.49 assertions/s | |
Shutting down BeEF... | |
ps -ef|grep beef|grep -v grep|awk '{print $2}'|xargs kill | |
~/beef/beef3 ± |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef3 ± git diff | |
diff --git a/core/main/client/net.js b/core/main/client/net.js | |
index 49413d2..8ebb56a 100644 | |
--- a/core/main/client/net.js | |
+++ b/core/main/client/net.js | |
@@ -257,6 +257,7 @@ beef.net = { | |
response.status_code = jqXHR.status; | |
response.status_text = textStatus; | |
response.duration = (end_time - start_time); | |
+ response.port_status = "open"; | |
}, | |
complete: function (jqXHR, textStatus) { | |
response.status_code = jqXHR.status; | |
@@ -273,7 +274,7 @@ beef.net = { | |
response.port_status = "open"; | |
} | |
} | |
- }).done(function () { | |
+ }).always(function () { | |
if (callback != null) { | |
callback(response); | |
} | |
diff --git a/test/common/test_constants.rb b/test/common/test_constants.rb | |
index 7e3ce5a..1c2178a 100644 | |
--- a/test/common/test_constants.rb | |
+++ b/test/common/test_constants.rb | |
@@ -7,7 +7,7 @@ BEEF_TEST_DIR = "/tmp/beef-test/" | |
# General constants | |
ATTACK_DOMAIN = "127.0.0.1" | |
-VICTIM_DOMAIN = "127.0.0.2" | |
+VICTIM_DOMAIN = "127.0.0.1" | |
ATTACK_URL = "http://" + ATTACK_DOMAIN + ":3000/ui/panel" | |
VICTIM_URL = "http://" + VICTIM_DOMAIN + ":3000/demos/basic.html" | |
diff --git a/test/integration/ts_integration.rb b/test/integration/ts_integration.rb | |
index 97f4ef1..9799e47 100644 | |
--- a/test/integration/ts_integration.rb | |
+++ b/test/integration/ts_integration.rb | |
@@ -23,12 +23,12 @@ class TS_BeefIntegrationTests | |
def self.suite | |
suite = Test::Unit::TestSuite.new(name="BeEF Integration Test Suite") | |
- suite << TC_CheckEnvironment.suite | |
- suite << TC_Login.suite | |
+ # suite << TC_CheckEnvironment.suite | |
+ # suite << TC_Login.suite | |
suite << TC_DebugModules.suite | |
- suite << TC_Jools.suite | |
+ # suite << TC_Jools.suite | |
#suite << TC_DnsRest.suite | |
- suite << TC_SocialEngineeringRest.suite | |
+ # suite << TC_SocialEngineeringRest.suite | |
return suite | |
end | |
~/beef/beef3 ± |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment