Skip to content

Instantly share code, notes, and snippets.

@pierew
pierew / smb.conf
Created January 23, 2017 20:02 — forked from skarllot/smb.conf
Linux Samba access-based enumeration
. . .
[Share]
. . .
hide unreadable = yes
hide unwriteable files = yes
. . .
@pierew
pierew / arp-to-ip-lookup-powershell.ps1
Created October 21, 2016 17:59 — forked from mikebranstein/arp-to-ip-lookup-powershell.ps1
ARP to IP lookup PowerShell script
# Gets the IP address of a computer via the MAC address. This will only work on LAN
# segments. By default we'll scan the ARP table, but then defer to an IP scan to
# as needed.
#
# Usage: $returnIpAddress = GetIPFromMAC "12-43-de-52-a9-99" "192.168.10."
# Pass in the mac address with dashes (-) as the first parameter
# Pass in an IP address with the last number missing, be sure to include the trailing "."
# Be sure to check the value if $returnIpAddress -eq $null to see if a value was actually returned
#
function GetIPFromMAC {