Created
June 23, 2015 06:22
-
-
Save xntrik/7f70f81acf8aa0c99443 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 | |
................F | |
=================================================================================================================================================================================================================================================================================== | |
Failure: | |
</ | |
^beefproject.com\.\t+ | |
\d+\t+ | |
IN\t+ | |
A\t+ | |
fe80::1%lo0$ | |
/x> expected to be =~ | |
<"\n; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 -p 5300 -t A beefproject.com\n; (1 server found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41015\n;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\n;; WARNING: recursion requested but not available\n\n;; QUESTION SECTION:\n;beefproject.com.\t\tIN\tA\n\n;; ANSWER SECTION:\nbeefproject.com.\t86400\tIN\tA\t10.0.0.3\n\n;; Query time: 8 msec\n;; SERVER: 127.0.0.1#5300(127.0.0.1)\n;; WHEN: Tue Jun 23 14:21:11 2015\n;; MSG SIZE rcvd: 49\n\n">. | |
test_1_dns_spoof(TC_SocialEngineeringRest) | |
/Users/xian/beef/beef3/test/integration/tc_social_engineering_rest.rb:75:in `test_1_dns_spoof' | |
72: dns_port = @@config.get('beef.extension.dns.port') | |
73: | |
74: dig_output = IO.popen(["dig", "@#{dns_address}", "-p", "#{dns_port}", "-t", "A", "#{domain}"], 'r+').read | |
=> 75: assert_match(regex, dig_output) | |
76: end | |
77: | |
78: private | |
=================================================================================================================================================================================================================================================================================== | |
Finished in 307.62915 seconds. | |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
17 tests, 46 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications | |
94.1176% passed | |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
0.06 tests/s, 0.15 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..9aa840d 100644 | |
--- a/test/common/test_constants.rb | |
+++ b/test/common/test_constants.rb | |
@@ -6,8 +6,8 @@ | |
BEEF_TEST_DIR = "/tmp/beef-test/" | |
# General constants | |
-ATTACK_DOMAIN = "127.0.0.1" | |
-VICTIM_DOMAIN = "127.0.0.2" | |
+ATTACK_DOMAIN = "attacker.beefproject.com" | |
+VICTIM_DOMAIN = "victim.beefproject.com" | |
ATTACK_URL = "http://" + ATTACK_DOMAIN + ":3000/ui/panel" | |
VICTIM_URL = "http://" + VICTIM_DOMAIN + ":3000/demos/basic.html" | |
~/beef/beef3 ± |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment