Connect to TCP port 80 on host example.com:
nc -vv <hostname> 80
Port scan TCP ports 7 through 1023 on a specified host:
nc -v -z 7-1023
| const axios = require('axios'); | |
| const express = require('express'); | |
| // from https://codewithmark.com/learn-to-create-youtube-video-downloader | |
| function qsToJson(qs) { | |
| var res = {}; | |
| var pars = qs.split('&'); | |
| var kv, k, v; | |
| for (i in pars) { | |
| kv = pars[i].split('='); |
| const axios = require('axios'); | |
| const express = require('express'); | |
| // from https://codewithmark.com/learn-to-create-youtube-video-downloader | |
| function qsToJson(qs) { | |
| var res = {}; | |
| var pars = qs.split('&'); | |
| var kv, k, v; | |
| for (i in pars) { | |
| kv = pars[i].split('='); |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include "clients.h" | |
| #include "getifaddr.h" | |
| #include "log.h" | |
| struct client_type_s client_types[] = | |
| { |
| /usr/bin/curl -X POST -d '<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAASAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>' http://ip.to.tv/IRCC |
| #! /bin/bash | |
| set -e | |
| trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
| trap 'echo FAILED COMMAND: $previous_command' EXIT | |
| #------------------------------------------------------------------------------------------- | |
| # This script will download packages for, configure, build and install a GCC cross-compiler. | |
| # Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
| # If you get an error and need to resume the script from some point in the middle, | |
| # just delete/comment the preceding lines before running it again. |
| #!/usr/bin/env python | |
| import sys | |
| import os | |
| from subprocess import Popen, PIPE | |
| from optparse import OptionParser | |
| def get_result(p): | |
| stdout = p.communicate() |
| #!/bin/sh | |
| # This script creates a user-mode linux machine based on Ubuntu. | |
| # Created by Clay Smith, May 2017 | |
| # | |
| # based on: https://gist.github.com/aputs/6247216 | |
| # and https://gist.github.com/AVGP/5410903 | |
| set -x |
| #!/usr/bin/env bash | |
| # Documentation | |
| # https://docs.gitlab.com/ce/api/projects.html#list-projects | |
| NAMESPACE="YOUR_NAMESPACE" | |
| BASE_PATH="https://gitlab.example.com/" | |
| PROJECT_SEARCH_PARAM="" | |
| PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")" | |
| PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }" |