HTML Application: Difference between revisions

Content deleted Content added
Example: fix syntaxhighlight error
Tag: Reverted
Line 66:
HTA have been used to deliver malware.<ref>{{Cite web|url=https://www.vmray.com/cyber-security-blog/spora-ransomware-dropper-hta-infect-system/|title=Spora Ransomware Dropper Uses HTA to Infect System|date=2017-01-17|website=VMRay|language=en-US|access-date=2018-12-22}}</ref><ref>{{Cite web|url=https://blog.netwrix.com/2017/06/01/nine-scariest-ransomware-viruses/|title=8 Scariest Ransomware Viruses|language=en-US|access-date=2018-12-22}}</ref> One particular HTA, named ''[[4chan]].hta'' (detected by antiviruses as JS/Chafpin.gen), was widely distributed by the users of the imageboard as a [[steganographic]] image in which the user were instructed to download the picture as an HTA file, which when executed, would cause the computer to automatically spam the website (evading 4chan's [[CAPTCHA]] in the process) with alternate variants of itself; it was reported that such attacks were previously delivered in which the user was prompted to save it as a [[JavaScript|.js]] file.<ref>{{cite web |last1=Constantin |first1=Lucian |title=4chan Flood Script Is Back with New Social Engineering Trick |url=https://news.softpedia.com/news/4chan-Flood-Script-Is-Back-with-New-Social-Engineering-Trick-151603.shtml |website=Softpedia |access-date=2021-11-09 |date=2010-08-10}}</ref>
 
def distance_between_points(lat1, lon1, lat2, lon2):
==Example==
"""Calculates the distance between two latitude-longitude points.
This is an example of [[Hello World]] as an HTML Application.
Args:
 
lat1: The latitude of the first point.
<syntaxhighlight lang="html">
lon1: The longitude of the first point.
<HTML>
lat2: The latitude of the second point.
<HEAD>
lon2: The longitude of the second point.
<HTA:APPLICATION ID="HelloExample"
Returns:
BORDER="bold"
The distance between the two points in kilometers.
BORDERSTYLE="complex"/>
"""
<TITLE>HTA - Hello World</TITLE>
# Convert the latitude and longitude values to radians.
</HEAD>
lat1 = math.radians(lat1)
<BODY>
lon1 = math.radians(lon1)
<H2>HTA - Hello World</H2>
lat2 = math.radians(lat2)
</BODY>
lon2 = math.radians(lon2)
</HTML>
# Calculate the distance between the two points.
</syntaxhighlight>
d = math.acos(
math.sin(lat1) * math.sin(lat2) +
math.cos(lat1) * math.cos(lat2) * math.cos(lon1 - lon2))
# Convert the distance to kilometers.
return d * 6371
 
== See also ==