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
| /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 |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include "clients.h" | |
| #include "getifaddr.h" | |
| #include "log.h" | |
| struct client_type_s client_types[] = | |
| { |
| 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('='); |
| #define _GNU_SOURCE | |
| #include <X11/Xlib.h> | |
| #include <X11/Xatom.h> | |
| #include <err.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int get_prop_card32(Display *d, Window w, Atom p) { | |
| Atom actual_type; |
| /* | |
| * Author: Raheman Vaiya | |
| * License: WTFPL (do you really need one?) | |
| * */ | |
| #include <stdio.h> | |
| #include <sys/time.h> | |
| #include <sys/types.h> | |
| #include <dirent.h> | |
| #include <string.h> |
| % ./a.out $WINDOWID | |
| Items: 22 | |
| Type: STRING | |
| WM_CLASS[0]: terminator | |
| WM_CLASS[1]: Terminator |
| #! /usr/bin/python2 | |
| import gtk.gdk | |
| w = gtk.gdk.window_foreign_new( gtk.gdk.get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0] ) | |
| w.set_decorations( (w.get_decorations()+1)%2 ) # toggle between 0 and 1 | |
| gtk.gdk.window_process_all_updates() | |
| gtk.gdk.flush() | |
| # now bind this to super-r or something |
| #!/bin/bash | |
| # | |
| # watch cgroup 'browsers' memory activity | |
| # | |
| # best served with ... | |
| # | |
| # https://gist.github.com/jakewarren/477ecd1149abe908cbd5cf7a7c9abaa3 | |
| self=$0 | |
| SUDO= |