Kali SSH setup

October 17, 2017 Leave a comment

Move default keys to backup folder:
# cd /etc/ssh; mkdir backup_ssh; mv ssh_host_* backup_ssh
# dpkg-reconfigure openssh-server

Allow root to login
Edit /etc/ssh/sshd_config, add or change line to:
PermitRootLogin yes

Restart SSH
# service ssh stop; service ssh start; service ssh status


Kali Linux Updating Notes

October 17, 2017 Leave a comment

Run in a cron or in a shell script:
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

apt-get install <package>
apt-get remove <package>
# List packages installed
dpkg -l
# list info about a package
apt-cache show <package>

# Repos where updates are retrieved

# Packages that speed up tools (may not be available for Kali 2.x)
apt-get install preload -y
# Increase privacy by removing temp files, cooks, caches, etc.
apt-get install bleachbit -y
# Remove unnecessary services; install Boot Up Manager
apt-get install bum -y
# Powers commands from keyboard
apt-get install gnome-do -y
# Search within apt system
apt-get install apt-file -y
# Deletion program that complies with govt standards
apt-get install scrub -y
# Capture screenshots of desktop
apt-get install shutter -y
# Print company name in header
apt-get install figlet -y
echo “figlet YOUR_COMPANY” >> ~/.bashrc

# Install TOR
apt-get install tor -y
# Edit /etc/proxychains.conf, change:
socks5 9050

# Start TOR service
service tor start
proxychains iceweasel http://www.whatismyip.com



Categories: Kali Linux, Uncategorized

Samba CIFS mounts and securing user password

October 15, 2017 Leave a comment

Adding the code blocks below to /etc/rc.local:

mount.cifs //<host1>/share /<mount_point> -o ro,credentials=/root/.cifs.<host1>,remount

Option “remount” prevents double mounting of the same share.

File .cifs.<hostname> contains:


Categories: Linux, Redhat, Uncategorized

RHEL 6 IGMPv3 setting

August 11, 2017 Leave a comment

Set following parameter in /etc/sysctl.conf file for the interface that is desired (e.g. bond0, eth0, etc.).

  • Reboot system
Categories: Linux, Redhat, Uncategorized

Prolific USB-Serial Windows 10 Error 10

July 27, 2017 Leave a comment

For this driver to work, you must have the version installed below:


Categories: Windows


Working vagrantfile I want to keep as a sample template:


# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version “>= 1.7.2”

# All Vagrant configuration is done below. The “2” in Vagrant.configure
# configures the configuration version. Please don’t change it unless you know what
# you’re doing.
Vagrant.configure(2) do |config|

config.vm.box = “<user>/openshift-origin”
#uncomment this line if you downloaded the box and want to use it instead
#config.vm.box = “openshift3”
config.vm.box_check_update = false
config.vm.network “private_network”, ip: “”
config.vm.synced_folder “.”, “/vagrant”, disabled: true
config.vm.hostname = “origin”
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing “localhost:8080” will access port 80 on the guest machine.
# config.vm.network “forwarded_port”, guest: 80, host: 8080
#config.vm.network “forwarded_port”, guest: 80, host: 1080
#config.vm.network “forwarded_port”, guest: 443, host: 1443
#config.vm.network “forwarded_port”, guest: 5000, host: 5000
#config.vm.network “forwarded_port”, guest: 8080, host: 8080
#config.vm.network “forwarded_port”, guest: 8443, host: 8443

config.vm.provider “virtualbox” do |vb|
# vb.gui = true
vb.memory = “8192”
vb.cpus = 2
vb.name = “origin-1.1.2”


Categories: Uncategorized

Finding exact SCNs for Oracle Incomplete Restore

Using reference from goldparrot below really helped:

2) Get the greatest of either absolute_fuzzy_change# or checkpoint_change# for your datafile backups.

The quickest way to roll forward just beyond the backup to open resetlogs is
to query v$backup_datafile.
You then just need to choose the greatest of either the absolute_fuzzy_change# or checkpoint_change#
for your backupset.

You can modify the query to your liking, and even add in many details from stamp and recid, but below
gets the job done quickly. Just choose the day in which your level0 or level1 completed and modify appropriately.

` col fuzz# format 99999999999999999999999999
` col chkpnt# format 99999999999999999999999999

select max(absolute_fuzzy_change#) fuzz#, max(checkpoint_change#) chkpnt# from
(select file#, completion_time, checkpoint_change#, absolute_fuzzy_change# from v$backup_datafile
where incremental_level = 0
and trunc(completion_time) = to_date(‘JUN-20-2010′,’MON-DD-YYYY’)
and file# <> 0
order by completion_time desc

This will return 2 SCN numbers. Pick the greatest of the 2.

——————– ——————–
23138984359 23138974759

Categories: Oracle, Uncategorized