Skip to content

arcotek-ltd/PsSysLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

PsSysLog

Finishes the job the Kiwi Syslog server starts

Quick PS script to resolve IP addresses into Whois data a IP GeoLocation.

You need to create an account and get an API key from https://jsonwhois.io/. If it asks for credit card details, just cancel the page by clicking another option. 250 request / month are free. I'm guessing they want you to go over and they can then charge you.

Once you have your API key, paste it into $ApiKey variable in PsSysLog.ps1.

From Kiwi SysLog, select the rows you want, right-click and copy to clipboard. Open up PsSysLog.ps1 and paste in the contents into the here string between @' and '@.

$hereString=@'
#Paste Kiwi Rows on clipboard here.
'@

It needs Windows 10 / Server 2016 because of the line FQDN = (Resolve-DnsName $_.srcIp -QuickTimeout).NameHost | Out-String. It can be changed to FQDN = ([system.net.dns]::gethostentry($_.SrcIp)).hostname | Out-String which should work back to PS 3.0.

I'll tidy it up... one day.

About

Finishes the job the Kiwi Syslog server starts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published