Skip to content

Instantly share code, notes, and snippets.

@nnposter
Created February 9, 2016 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nnposter/53cd44f1c39cea370678 to your computer and use it in GitHub Desktop.
Save nnposter/53cd44f1c39cea370678 to your computer and use it in GitHub Desktop.
Adds a signature for BeEF control UI to http-default-accounts-fingerprints
* Adds a signature for BeEF control UI
--- a/nselib/data/http-default-accounts-fingerprints.lua
+++ b/nselib/data/http-default-accounts-fingerprints.lua
@@ -199,6 +199,27 @@
return try_http_post_login(host, port, path, "login", "Invalid auth credentials!", {submit="+Login+", userName=user, password=pass})
end
})
+
+table.insert(fingerprints, {
+ name = "BeEF",
+ category = "web",
+ paths = {
+ {path = "/ui/authentication/"}
+ },
+ target_check = function (host, port, path, response)
+ return response.body
+ and response.body:lower():find("<title>beef authentication</title>", 1, true)
+ end,
+ login_combos = {
+ {username = "beef", password = "beef"}
+ },
+ login_check = function (host, port, path, user, pass)
+ return try_http_post_login(host, port, path, "login",
+ "{%s*success%s*:%s*false%s*}",
+ {["username-cfrm"]=user, ["password-cfrm"]=pass})
+ end
+})
+
---
--ROUTERS
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment