Created
June 24, 2015 11:01
-
-
Save xntrik/6209b5917a721823a37a 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/beef2015jun ± 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: | |
<0> expected to be != to | |
<0>. | |
test_get_all_services(TC_NetworkRest) | |
/Users/xian/beef/beef2015jun/test/integration/tc_network_rest.rb:139:in `test_get_all_services' | |
136: result = JSON.parse(rest_response.body) | |
137: assert(result['count']) | |
138: assert(result['services']) | |
=> 139: assert_not_equal(0, result['count']) | |
140: end | |
141: | |
142: # Tests GET /api/network/services/:sessionid handler with valid input | |
=============================================================================================================================================================================================================================== | |
....F | |
=============================================================================================================================================================================================================================== | |
Failure: | |
Exception raised: | |
404 Resource Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.2.3 (CentOS)</address></body></html> | |
test_get_service_valid_id(TC_NetworkRest) | |
/Users/xian/beef/beef2015jun/test/integration/tc_network_rest.rb:176:in `test_get_service_valid_id' | |
173: def test_get_service_valid_id | |
174: id = 1 | |
175: rest_response = nil | |
=> 176: assert_nothing_raised do | |
177: rest_response = RestClient.get("#{RESTAPI_NETWORK}/service/#{id}", :params => {:token => @@token}) | |
178: end | |
179: check_rest_response(rest_response) | |
=============================================================================================================================================================================================================================== | |
..F | |
=============================================================================================================================================================================================================================== | |
Failure: | |
<0> expected to be != to | |
<0>. | |
test_get_services_valid_session(TC_NetworkRest) | |
/Users/xian/beef/beef2015jun/test/integration/tc_network_rest.rb:152:in `test_get_services_valid_session' | |
149: result = JSON.parse(rest_response.body) | |
150: assert(result['count']) | |
151: assert(result['services']) | |
=> 152: assert_not_equal(0, result['count']) | |
153: | |
154: result['services'].each do |service| | |
155: assert_equal(@@hb_session, service['hooked_browser_id']) | |
=============================================================================================================================================================================================================================== | |
. | |
Finished in 303.691084 seconds. | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
27 tests, 87 assertions, 3 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications | |
88.8889% passed | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
0.09 tests/s, 0.29 assertions/s | |
Shutting down BeEF... | |
ps -ef|grep beef|grep -v grep|awk '{print $2}'|xargs kill | |
~/beef/beef2015jun ± |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment