Skip to content

Instantly share code, notes, and snippets.

View Lawlez's full-sized avatar
🇨🇭
Internet Freedom

Dominik 'Lawlez' Feger Lawlez

🇨🇭
Internet Freedom
View GitHub Profile
@Lawlez
Lawlez / README.MD
Last active March 19, 2021 16:02
2021 Web Developer's Toolbox

2021 Web Developer's Toolbox

Bundle Analyzer tools

  • bundlephobia: find the cost of adding a npm package to your bundle
  • Snyk Advisor: compare Popularity, Maintenance, Security and Community of any pakage
  • best of JS: find popular pakages for your needs

Design and UI

  • material color tool: Create, share, and apply color palettes to your UI, as well as measure the accessibility level of any color combination.
  • Material Design Guidelines: Create intuitive and beautiful products with Material Design
@Lawlez
Lawlez / gist:56a4e92d11878e5d777e612f4c4bb5a6
Created February 25, 2021 13:38
How to Detect ReDoS in your JS regex
#evil regex
1. install rxxr2: https://www.cs.bham.ac.uk/~hxt/research/rxxr2/
2. test regex with rxxr2: ./scan.bin /(a+)+/
visualize regex with https://regexper.com/
further analysis tools:
@Lawlez
Lawlez / mal.gif
Created February 19, 2021 16:10
Malicous GIF
GIF89a.........ÿ...!ù......,........<svg onerror=alert(00) />;
@Lawlez
Lawlez / decryption-module.web.js
Last active October 28, 2020 17:01
Encrypt and decrypt in javascript using node or browserify for use with openssl or php
import crypto from 'browserify-aes'
/**********************************************************************
*
* DECRYPTION MODULE FOR USE IN BROWSER DURING RUNTIME *
*
***********************************************************************/
const decrypt = hash => {
const hash = hash.data
//get IV from input, make sure its no longer than 16 bytes
@Lawlez
Lawlez / keybase.md
Created October 28, 2020 09:55
keybase.md

Keybase proof

I hereby claim:

  • I am lawlez on github.
  • I am lwlx (https://keybase.io/lwlx) on keybase.
  • I have a public key whose fingerprint is 35A0 EDE7 758E ED76 2E45 10E7 C382 7DD3 E0DC 4810

To claim this, I am signing this object:

Nmap scan report for 192.168.1.21
Host is up (0.0025s latency).
Not shown: 990 closed ports
PORT STATE SERVICE VERSION
21/tcp open ftp
| fingerprint-strings:
| GenericLines:
| 220 FTP FTP server ready.
| command not understood.
| command not understood.
@Lawlez
Lawlez / client.js
Created December 4, 2019 12:30
React websockets base
import React, {useState, useEffect} from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import Login from './login'
import {w3cwebsocket as W3CWebSocket} from 'websocket'
const client = new W3CWebSocket('ws://localhost:8080')
const Application = () => {
const [isLoggedIn, setIsLoggedIn] = useState(false)
const [userName, setUserName] = useState('username')
0x2674b8c8DDc36e4844cB0F09AA2FD1Eea0d43591
@Lawlez
Lawlez / rinkeby
Created July 26, 2017 12:41
rinkeby
0xF9a524a90b0d80DA0fAAa1e1E9e7af879591dDb2