Skip to content

Instantly share code, notes, and snippets.

@jeffery
jeffery / GitRepoUpdateTimestamp.sh
Created July 30, 2011 13:04
Update Timestamp of files in Checked-out Git Repository
#!/bin/bash -e
####
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files
@bcoles
bcoles / nntp-options.nse
Last active June 21, 2022 21:54
nntp-options.nse - Retrieves the available commands and banners from a listening NNTP daemon.
description = [[
Retrieves the available commands and banners from a listening NNTP daemon.
The Network News Transfer Protocol (NNTP) is an Internet application protocol used for transporting Usenet news articles (netnews) between news servers and for reading and posting articles by end user client applications.
For more information about NNTP, see:
http://tools.ietf.org/html/rfc3977
http://tools.ietf.org/html/rfc6048
http://en.wikipedia.org/wiki/Network_News_Transfer_Protocol
]]
@bcoles
bcoles / http-polycom-soundpoint-info.nse
Created September 22, 2011 06:38
http-polycom-soundpoint-info.nse - Attempts to retrieve the configuration settings from a Polycom SoundPoint VoIP phone.
description = [[
Attempts to retrieve the configuration settings from a Polycom SoundPoint VoIP
phone. The information is retrieved from "/reg_1.htm" and "/reg_2.htm" which is
only available when authentication is disabled.
The web administration interface runs on port 80 by default.
]]
---
-- @usage
@bcoles
bcoles / http-vivotek-camera-info.nse
Created November 11, 2011 07:02
http-vivotek-camera-info.nse - Attempts to retrieve the configuration settings from a Vivotek network camera.
description = [[
Attempts to retrieve the configuration settings from a Vivotek network camera.
The information is retrieved from "/cgi-bin/admin/getparamjs.cgi" which is not
available on all models.
The web administration interface runs on port 80 by default.
]]
---
-- @usage
@bcoles
bcoles / gpsd-ng-info.nse
Created January 24, 2012 12:41
gpsd-ng-info.nse - Retrieves device and version information from a listening GPSD-NG daemon.
description = [[
Retrieves device and version information from a listening GPSD-NG daemon.
gpsd is a service daemon that monitors one or more GPSes or AIS receivers attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer.
For more information about GPSD-NG, see:
http://gpsd.berlios.de/gpsd.html
http://en.wikipedia.org/wiki/Gpsd
http://gpsd.berlios.de/protocol-evolution.html
]]
@bcoles
bcoles / http-igd-info.nse
Created January 29, 2012 04:38
http-igd-info.nse - Attempts to retrieve device information from an Internet Gateway Device (IGD) UPnP configuration file.
description = [[
Attempts to retrieve device information from an Internet Gateway Device (IGD)
UPnP configuration file.
For more information, see:
http://upnp.org/specs/gw/igd2
http://en.wikipedia.org/wiki/Internet_Gateway_Device_Protocol
]]
---
@bcoles
bcoles / http-carel-data-server-users.nse
Last active June 21, 2022 21:53
http-carel-data-server-users.nse - Attempts to retrieve all valid usernames from the HTTP component of Carel Pl@ntVisor (CarelDataServer.exe).
description = [[
Attempts to retrieve all valid usernames from the HTTP component of Carel
Pl@ntVisor (CarelDataServer.exe).
]]
---
-- @usage
-- nmap --script http-carel-data-server-users -p <port> <host>
--
-- @output
@bcoles
bcoles / http-server.nse
Created February 4, 2012 10:21
http-server.nse - Retrieves all HTTP "server" headers.
description = [[
Retrieves all HTTP "server" headers.
]]
---
-- @usage
-- nmap --script http-server -p <port> <host>
--
-- @output
-- PORT STATE SERVICE REASON
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@bcoles
bcoles / acarsd-info.nse
Created February 24, 2012 00:34
acarsd-info.nse - Retrieves information from a listening acarsd daemon.
description = [[
Retrieves information from a listening acarsd daemon.
acarsd is an ACARS decoder for a Linux or Windows PC which attempts to decode ACARS transmissions in real-time. The information retrieved includes the daemon version, API version, administrator e-mail address and listening frequency.
For more information about acarsd, see:
* http://www.acarsd.org/
]]
---