Modlishka icon indicating copy to clipboard operation
Modlishka copied to clipboard

Enhancement: cookie in admin panel

Open ChessSpider opened this issue 6 years ago • 13 comments

important things first: it works great and is awesome! thanks

in addition to capturing username/password, i'd also like to show the captured cookies for easy impersonation in the admin panel. I now fetch them from the logfile.

ChessSpider avatar Jan 10 '19 10:01 ChessSpider

thanks, happy to hear that :-)

this is something that I am working on (also testing different approaches), since capturing a precise state of the cookie jar for the whole domain isn't that easy. At the moment you can rely on cookies that are written to the logfile and I will soon add an option to get a them through the control panel.

drk1wi avatar Jan 12 '19 16:01 drk1wi

Hi, It would be useful to make a text substitution module on the fly. For example, on a phishing domain, you need to replace the text phrase with your own. Or a series of phrases. For convenience, one could use the file (or in the module body itself) to enter a list of replacements. "word that needs to be replaced": "new word"

ciberx avatar Jan 14 '19 10:01 ciberx

@ciberx this is already implemented. check out the https://github.com/drk1wi/Modlishka/wiki/How-to-use (rules parameter)

drk1wi avatar Jan 14 '19 10:01 drk1wi

It would be awesome if there were a button in the control panel to copy all cookies to the clipboard in JSON format to support easy session hijacking via browser extensions like CookieBro.

ImpostorKeanu avatar Jan 19 '19 21:01 ImpostorKeanu

@arch4ngel that's an interesting option, but through the phishing domain or the target one?

drk1wi avatar Jan 20 '19 09:01 drk1wi

If I'm being rational:

  1. Phish domain > control panel > copy all cookies from origin in JSON
  2. Replace cookies for origin application with those on clip board
  3. Access origin application in context of affected user

However, I may be oversimplifying this @drk1wi. Unsure as what the members that are required for the JSON object to be imported.

I'm going to get cracking at GO as soon as I get all my projects written up so that I can contribute instead of theorizing. Modlishka has helped make my reports longer due to success ;)

ImpostorKeanu avatar Jan 20 '19 13:01 ImpostorKeanu

@arch4ngel you want to import cookies like the evilginx?

Phoenix1112 avatar Jan 20 '19 14:01 Phoenix1112

@CyberTheReape yes, quite like EG2.

ImpostorKeanu avatar Jan 20 '19 14:01 ImpostorKeanu

İ did try with cookies , i did not do it..

But if you edit cookies like the evilginix , maybe you can import it...

Phoenix1112 avatar Jan 20 '19 14:01 Phoenix1112

Unsure. Haven't had a chance to peek at the code yet. I suspect it'll be a change to the control panel plugin, assuming it accesses the DB directly.

ImpostorKeanu avatar Jan 20 '19 14:01 ImpostorKeanu

It would be great if the cookies were on the panel.or download link will appear in the panel and it would be great to download and import the json file

Phoenix1112 avatar Jan 20 '19 14:01 Phoenix1112

Definitely doable. I can add a JSON download option for each user (format would be based on the CookieJar struct? - would that be useful?)

At the moment cookies are retrieved from the 'set-cookie' HTTP responses (that's also the reason why it is labeled as 'beta'), but if we want to have a precise snapshot of the browsers cookie jar, we could also update the relevant UUID cookie jar entries based on HTTP requests (in case there's a cookie that was created via a JS).

drk1wi avatar Jan 20 '19 15:01 drk1wi

I don't know exactly.. because each program's import properties are different.need to specify a program to import cookies before.then you should try to set cookies according to the program you selected.Cookie programs that can work with the .json extension..

Phoenix1112 avatar Jan 20 '19 16:01 Phoenix1112