Skip to content

Instantly share code, notes, and snippets.

View healeyio's full-sized avatar

Andrew Healey healeyio

View GitHub Profile
@healeyio
healeyio / openvas-feed-update.sh
Created May 13, 2019 19:27
OpenVAS Update Script
#!/bin/bash
# Only update OpenVAS when no scans are running
scanRunning="$(ps aux | grep "openvassd: testing " | wc -l)"
scanRunning=$((scanRunning + "$(ps aux | grep "openvasmd: OTP: Handling scan" | wc -l)"))
# if the commands above result in 2 or less, a scan is not running and it is safe to update
if [ $scanRunning -le 2 ]; then
echo "Updating OpenVas Feeds"
/usr/sbin/greenbone-nvt-sync
@healeyio
healeyio / locky.ps1
Last active March 26, 2016 14:55 — forked from x0rz/locky.ps1
$key = "HKCU:\SOFTWARE\Locky"
If ((Test-Path $key) -ne $true) {
# Create registry Key
New-Item -Path $key -ItemType Key
# Setting ACL
$a = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
$acl = Get-Acl $key
$rule = New-Object System.Security.AccessControl.RegistryAccessRule ($a,"FullControl","Deny")
$acl.SetAccessRule($rule)
@healeyio
healeyio / Set-LyncNoteWithTwitter.ps1
Last active August 29, 2015 14:14
Update Lync Notes with Twitter
#requires Version 3.0
<#
.SYNOPSIS
Sets Lync 2013 Client's PersonalNote field with latest tweet from your favorite twitter personality:
@SwiftOnSecurity
.DESCRIPTION
What's happening today? Find out with the Set-LyncNoteWithTwitter.ps1 script. It sets the Lync 2013
Client's personal note to match the latest tweet from your favorite twitter personality.
Authentication and authorization are handled throughTwitter's Oauth implementation. Everything else is
@healeyio
healeyio / Update-LyncLocation.ps1
Last active July 28, 2020 14:06
Update Lync Client (2013) Location Field with GeoIP Location Data
#requires Version 3.0
<#
.SYNOPSIS
Updates Lync 2013 Client's location information with geolocation data based on internet ip address.
.DESCRIPTION
The Update-LyncLocation.ps1 script updates the Lync 2013 Client's location information. It uses the
Telize web service to determine your external ip address and then queries Telize to collect publicly
available geolocation information to determine your location. That data is then parsed into usable
information and published to the Lync client.

Keybase proof

I hereby claim:

  • I am healeyio on github.
  • I am healeyio (https://keybase.io/healeyio) on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object: