Skip to content

Instantly share code, notes, and snippets.

@soheilsec
soheilsec / 6to4 for Openvpn & cisco
Created February 9, 2024 09:02
6to4 for Openvpn & cisco
Openvpn / cisco
#IRAN
#!/bin/bash
ip tunnel add 6to4tun_IR mode sit remote 65.21.4.49 local 185.1.1.1
ip -6 addr add 2001:470:1f10:e1f::1/64 dev 6to4tun_IR
ip link set 6to4tun_IR mtu 1480
ip link set 6to4tun_IR up
# confige tunnele GRE6 ya IPIPv6 IR
ip -6 tunnel add GRE6Tun_IR mode ip6gre remote 2001:470:1f10:e1f::2 local 2001:470:1f10:e1f::1
@soheilsec
soheilsec / 6to4 to multiple host
Created February 9, 2024 09:01
6to4 to multiple host
#!/bin/bash
#IRAN
# First 6to4 tunnel
ip tunnel add 6to4tun_IR mode sit remote 108.1.1.1 local 193.1.1.1
ip -6 addr add 2001:470:1f10:e1f::1/64 dev 6to4tun_IR
ip link set 6to4tun_IR mtu 1480
ip link set 6to4tun_IR up
# Second 6to4 tunnel
@soheilsec
soheilsec / Red Team Courses
Created February 1, 2024 17:26
Red Team Courses
requirements:
OWASP top 10
kali linux
Active Directory concepts
Windows Internals
Linux Internals
Red Team 1 ->35-45 hours
Network Fundamentals
Web Application Security
@soheilsec
soheilsec / 6to4 v2ray
Created November 17, 2023 18:24
6to4 v2ray
#!/bin/bash
ip tunnel add 6to4tun_IR mode sit remote 109.104.154.237 local 37.152.181.148
ip -6 addr add 2001:470:1f10:e1f::1/64 dev 6to4tun_IR
ip link set 6to4tun_IR mtu 1480
ip link set 6to4tun_IR up
# confige tunnele GRE6 ya IPIPv6 IR
ip -6 tunnel add GRE6Tun_IR mode ip6gre remote 2001:470:1f10:e1f::2 local 2001:470:1f10:e1f::1
ip addr add 172.16.1.1/30 dev GRE6Tun_IR
ip link set GRE6Tun_IR mtu 1436
ip link set GRE6Tun_IR up
@soheilsec
soheilsec / Cisco Radcli
Created November 10, 2023 17:25
Cisco Radcli
#!/bin/bash
#cisco
#read -p "Enter your Domain For Let'sEncrypt You should Add subdomain before run script! like Vpn.diablo.com : " Domain
#ping -c 1 $Domain
read -p "Enter Your IBSNG domain : " IBSNG
#YOUR_DNS='cisco4.servadd.net'
#YOUR_IBSNG_DNS='ibsng-radius.servadd.net'
yum update -y
systemctl stop firewalld
@soheilsec
soheilsec / openvpn installation Script IBSNG
Created November 10, 2023 17:24
openvpn installation Script IBSNG
#!/bin/bash
#
# Powerd By Mr-Amwer
# This script enables duplicate-cn in server.conf. You can share the same client.ovpn file for multiple users.
# Based on Nyr https://github.com/gayankuruppu/openvpn-install-for-multiple-users
MAINSERVERURL="http://amqq.ir/vpn/"
# checks if ubuntu is 1604
if grep -qs "Ubuntu 16.04" "/etc/os-release"; then
@soheilsec
soheilsec / Stunnel Kharej
Created November 10, 2023 17:22
Stunnel Kharej
yum update -y
yum install nano lsof net-tools wget -y
nano /etc/selinux/config => disable selinux
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
reboot
yum install stunnel -y
cat > /etc/stunnel/stunnel.pem <<EOF
@soheilsec
soheilsec / Stunnel IRAN
Created November 10, 2023 17:21
Stunnel IRAN
yum update -y
yum install nano lsof net-tools wget -y
#nano /etc/selinux/config => disable selinux
#wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
#reboot
yum install stunnel -y
cat > /etc/stunnel/stunnel.pem <<EOF
@soheilsec
soheilsec / application for https vpn Android and iOS
Last active October 30, 2023 15:51
application for https vpn Android and iOS
Android
https://play.google.com/store/apps/details?id=com.initex.proxifier.beta&hl=en&gl=US
https://play.google.com/store/apps/details?id=link.infra.sslsocks&hl=en&gl=US
dar ghesmat config barname sslsocks
file stunnel.conf ijad konid mavared zir copy konid
foreground = yes
client = yes
pid = /data/user/0/link.infra.sslsocks/files/pid
@soheilsec
soheilsec / HTTPS VPN
Last active November 26, 2023 18:24
HTTPS VPN
#!/bin/bash
#Stunnel
read -p "Enter Your IBSNG domain : " -e -i 37.152.181.148 IBSNG
read -p "Port https Default is 443 : " -e -i 443 PORTs
read -p "Port http Default is 443 : " -e -i 80 PORT
read -p "preshared key default is 123456 : " -e -i 123456 Sharekey
yum update -y
yum groupinstall "Development Tools" -y