Skip to content

Instantly share code, notes, and snippets.

@oernii
oernii / password.txt
Created April 9, 2022 11:21 — forked from gabonator/password.txt
HiSilicon IP camera root passwords
Summary of passwords by sperglord8008s, updated November 1. 2020. For login try "root", "default", "defaul" or "root"
00000000
059AnkJ
4uvdzKqBkj.jg
7ujMko0admin
7ujMko0vizxv
123
1111
1234
@oernii
oernii / hfsc-shape.sh
Created December 12, 2017 09:32 — forked from bradoaks/hfsc-shape.sh
HFSC - linux traffic shaping's best kept secret
#!/bin/bash
# As the "bufferbloat" folks have recently re-discovered and/or more widely
# publicized, congestion avoidance algorithms (such as those found in TCP) do
# a great job of allowing network endpoints to negotiate transfer rates that
# maximize a link's bandwidth usage without unduly penalizing any particular
# stream. This allows bulk transfer streams to use the maximum available
# bandwidth without affecting the latency of non-bulk (e.g. interactive)
# streams.
@oernii
oernii / dirty_passwd_adjust_cow.c
Created October 24, 2016 15:14 — forked from ngaro/dirty_passwd_adjust_cow.c
A dirty cow exploit that automatically finds the current user in passwd and changes it's uid to 0
#include <stdio.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/stat.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#!/bin/bash
# $Id: ovirt-get-accounting-info,v 1.3 2013/06/13 10:01:26 oernii Exp $
vms=`find /cgroup/blkio/libvirt/qemu/ -maxdepth 1 -mindepth 1 -type d -printf "%f\n"`
IGNORED="/dev/mapper/1ISCSI_msa1000_146 /dev/mapper/1ISCSI_msa1000_36 /dev/mapper/1STORAGE_interim /dev/mapper/1STORAGE_storage1 /dev/mapper/1STORAGE_storage2 /dev/mapper/1STORAGE_storage3"
IGNORED_REGEX=""
DM_PREFIX=253
for ig in $IGNORED
do
#!/bin/bash
# $Id: dm-cache-status,v 1.1 2014/08/19 09:02:46 oernii Exp $
# Status
# ------
#
# <metadata block size> <#used metadata blocks>/<#total metadata blocks>
# <cache block size> <#used cache blocks>/<#total cache blocks>
# <#read hits> <#read misses> <#write hits> <#write misses>
# <#demotions> <#promotions> <#dirty> <#features> <features>*