HTML Application: Difference between revisions

Content deleted Content added
Tag: Reverted
m Reverted edits by 158.62.76.80 (talk): editing tests (HG) (3.4.12)
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>
 
==Example==
def distance_between_points(lat1, lon1, lat2, lon2):
This is an example of [[Hello World]] as an HTML Application.
"""Calculates the distance between two latitude-longitude points.
 
Args:
<syntaxhighlight lang="html">
lat1: The latitude of the first point.
<HTML>
lon1: The longitude of the first point.
<HEAD>
lat2: The latitude of the second point.
<HTA:APPLICATION ID="HelloExample"
lon2: The longitude of the second point.
BORDER="bold"
Returns:
BORDERSTYLE="complex"/>
The distance between the two points in kilometers.
<TITLE>HTA - Hello World</TITLE>
"""
</HEAD>
# Convert the latitude and longitude values to radians.
<BODY>
lat1 = math.radians(lat1)
<H2>HTA - Hello World</H2>
lon1 = math.radians(lon1)
</BODY>
lat2 = math.radians(lat2)
</HTML>
lon2 = math.radians(lon2)
</syntaxhighlight>
# Calculate the distance between the two points.
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 ==