Category Archives: Other

Automate PenTest using ZAP and Jenkins

Run WebGoat test app in Docker container: Sample webgoat.context file which is required for authenticated scans and can be exported using ZAP gui: Create a Jenkins pipeline with the following params: Jenkins pipeline script: References: Advertisements

Posted in Jenkins, Other, zap

tmux and screen basic commands

tmux: tmux | tmux new -s “mysession”          (Start a new session) tmux ls                       (List sessions) ctrl+b d | exit            (Detach or … Continue reading

Posted in LFCE, LFCS, Linux, Other

Python basics

(i) Install and configure git: yum install git && vim-enhanced git config –global user.name “User” git config –global user.email “user@python.local” cur https://raw.githubusercontent.com/linuxacademy/content-python-for-sys-admins/master/helpers/bashrc -o ~/.bashrc cur https://raw.githubusercontent.com/linuxacademy/content-python-for-sys-admins/master/helpers/vimrc -o ~/.vimrc mkdir sample; touch sample.txt; cd sample git init git status git add –all . git … Continue reading

Posted in Other, python

Setup route between two hosts

i) centos host:  (IP: 10.20.45.1; Netmask: 255.255.255.0; Gateway: 10.20.45.1) Add the following into /etc/sysconfig/network-scripts/ifcfg-ens33 NAME=ens33                               DEVICE=ens33 BOOTPROTO=static ONBOOT=yes IPADDR=10.20.45.1 NETMASK=255.255.255.0   (No GATEWAY here because its defined in … Continue reading

Posted in Linux, Other

Ubuntu basic commands

i) Advanced Packaging Tool (apt): apt-get: apt-get update (updates only the list of available packages and their versions, but will not perform any update) apt-get upgrade (this will actually updates already installed packages, must run update before upgrade) apt-get upgrade … Continue reading

Posted in Linux, Other | Tagged

No supported authentication methods available (Server sent: publickey)

First of all make sure you have setup ssh keys correctly by following the post: https://websphereissues.wordpress.com/2014/11/25/add-ssh-keys-for-a-user-in-linux/ In /var/log/secure, if you noticed the error “Authentication refused bad ownership or modes for directory“, then you need to set “StrictModes no” in /etc/ssh/sshd_config file and … Continue reading

Posted in Other

Configure keystore for an execution group on a Broker

mqsisetdbparms brkname -n brokerTruststore::password -u temp -p password mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n keystoreFile -v /opt/brkr/keystore.jks mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n keystoreType -v JKS mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n keystorePass -v brokerKeystore::password mqsichangeproperties brkname … Continue reading

Posted in Other