Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
import requests | |
class OneLogin(object): | |
def __init__(self, shard='US'): | |
""" | |
Specify the shard of the system being used (us or eu) | |
:param shard: us or eu | |
:return: | |
""" |
FROM python:3.5.2 | |
ENV TZ=Asia/Shanghai | |
RUN apt-get update \ | |
&& apt-get install -y cron \ | |
&& apt-get autoremove -y | |
COPY ./cronpy /etc/cron.d/cronpy | |
CMD ["cron", "-f"] |
I am programmer who want to learn hacking. I start by playing online wargame. Here I list free online wargame available to anyone who want to learn hacking.
pass='YOURPASSWORD' | |
for host in `cat ips` | |
do | |
sshpass -p $pass ssh -o ConnectTimeout=1 -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no root@$host "hostname" | |
done | |
### Using encoding to escape Shoulder Surfing ;) | |
vim tempfile | |
#In the file write your password | |
cat tempfile | openssl enc -base64 |
#!/bin/sh | |
# fix permissions (wrong if docker mounted volume) | |
chown -R elasticsearch:elasticsearch /var/lib/elasticsearch | |
# now switch to elasticsearch user and run in foreground | |
echo Starting: /usr/share/elasticsearch/bin/elasticsearch -Des.default.config=$CONF_FILE -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=$LOG_DIR -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=$CONF_DIR $@ | |
su elasticsearch -s /bin/sh -c "/usr/share/elasticsearch/bin/elasticsearch -Des.default.config=$CONF_FILE -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=$LOG_DIR -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=$CONF_DIR $@" |
{ | |
"Powershell": { | |
"process_name": ["powershell.exe"] | |
}, | |
"PSExec": { | |
"process_name": ["psexec*.exe", | |
"psexesvc.exe"] | |
}, | |
"at": { | |
"process_name": ["at.exe"] |
input { | |
file { | |
path => "/var/log/nginx/access.log" | |
type => "nginx-access" | |
sincedb_path => "/var/log/.nginxaccesssincedb" | |
} | |
} | |
input { | |
file { | |
path => "/var/log/nginx/error.log" |
#!/bin/bash | |
# --------------------------------------------------------------------------- | |
# elksetup.sh - Ubuntu 14.04 based ELK installation script | |
# Copyright 2015, https://github.com/zebde | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |