Skip to content

Instantly share code, notes, and snippets.

View ep4sh's full-sized avatar
👊

Pasha Radchenko ep4sh

👊
View GitHub Profile
@ep4sh
ep4sh / icinga2.conf
Last active June 28, 2023 14:15 — forked from vachanda/icinga2.conf
Nginx config for icinga2 web interface with php 7.2 fpm.
server {
listen 8080;
server_name www.icinga.lc;
root /usr/share/icingaweb2/public; #Path of icinga2 web directory
index index.php;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location = /favicon.ico {
log_not_found off;
@ep4sh
ep4sh / gist:c9f563582e437a6aad2f91084f40925b
Created June 13, 2018 09:56
X11VNC service debian 9 GNOME3 autoinstall
sudo apt-get install x11vnc
sudo x11vnc -forever -repeat -shared -loop -auth /run/user/1000/gdm/Xauthority
sudo tee <<EOF > /lib/systemd/system/x11vnc.service
[Unit]
[Service]
Type=forking
ExecStart=/usr/bin/x11vnc -forever -repeat -shared -loop -auth /run/user/1000/gdm/Xauthority
Restart=on-failure
@ep4sh
ep4sh / Firewalld.edu
Last active February 19, 2018 13:06
Linux. Centos. Firewalld
# firewall-cmd --state
показать состояние
# systemctl [start | status | stop] firewalld
запуск, состояние, стоп таргета
# systemctl [enable | disable ] firewalld
@ep4sh
ep4sh / sourceCodeRemover.py
Created December 12, 2017 17:39
Delete comments from source code files
#developed by @ep4sh
import re
import sys
#################
# USAGE (from terminal):
# python sourceCodeRemover.py <source_code_name>
###############
# .NET +
# Python +-
@ep4sh
ep4sh / nowa.py
Created December 9, 2017 11:28
Email collector for nowa profiles
#ep4sh.github.io
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import re
#template fo reg search
pattern = re.compile(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)")
#tor??
service_args = [ '--proxy=localhost:9150', '--proxy-type=socks5', ]
#drova
driver = webdriver.Firefox()
@ep4sh
ep4sh / VkPhotoScreen.py
Last active December 9, 2017 06:14
Selenium vk photo grabber/screenshotter
#Developed by @ep4sh
#This one brute with login:login entities
#U can modify this as u want
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://www.vk.com/")
login = driver.find_element_by_id("index_email")
password = driver.find_element_by_id("index_pass")
@ep4sh
ep4sh / email.py
Last active December 9, 2017 05:52
Simple email sender via python
#Developed by @ep4sh
import smtplib
from email.mime.text import MIMEText
msg = MIMEText("The body ")
msg['Subject'] = "Subj"
msg['From'] = "[email protected]"
msg['To'] = "[email protected]"
s = smtplib.SMTP('localhost')
@ep4sh
ep4sh / HTTPBasicAuthBruteForce.py
Last active December 9, 2017 05:53
HTTP BasicAuth Brutefoce
#Developed by @ep4sh
#This one brute with login:login entities
#U can modify this as u want
import requests
import time
from requests.auth import AuthBase
from requests.auth import HTTPBasicAuth
with open("login", "r") as f:
from selenium import webdriver
service_args = [ '--proxy=localhost:9150', '--proxy-type=socks5', ]
driver = webdriver.PhantomJS(executable_path='<path to PhantomJS>', service_args=service_args)
driver.get("http://icanhazip.com")
print(driver.page_source)
driver.close()
@ep4sh
ep4sh / upWork_done.py
Last active December 9, 2017 05:54
GG WP: freelance work
import re
p = re.compile('order-.*-online')
with open("str.txt","r") as f:
file_str = f.read()
lst = re.findall(p, file_str)
for i in lst:
print(i.replace("_","-"))