1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Fix coding style of all scripts with Lunadry.

This commit is contained in:
d33tah
2013-08-29 13:34:23 +00:00
parent 02b7b0ac8e
commit d68d608d7d
6 changed files with 34 additions and 34 deletions

View File

@@ -6,6 +6,6 @@
--loop that will waste your CPU power until you kill the process.
while true do
print("chargen")
print "chargen"
end

View File

@@ -4,11 +4,11 @@
while true do
print("Here's a menu for you: ")
print("1. Repeat the menu.")
print("0. Exit.")
print "Here's a menu for you: "
print "1. Repeat the menu."
print "0. Exit."
io.write("Please enter your choice: ")
io.write "Please enter your choice: "
io.flush(io.stdout)
i = io.read()
@@ -24,9 +24,9 @@ while true do
if i == "0" then
break
elseif i == "1" then
print("As you wish.")
print "As you wish."
else
print("No idea what you meant. Please try again.")
print "No idea what you meant. Please try again."
end
print() --print a newline

View File

@@ -1,4 +1,4 @@
--This is a --lua-exec "Hello world" example. In order to send to a client,
--all you need to do is output it to the standard output.
print("Hello, world!")
print "Hello, world!"

View File

@@ -1,4 +1,4 @@
--A "what is my IP" service code. Since most web browsers put up with servers
--not sending proper HTTP headers, you can simply query the service with it.
print(os.getenv("NCAT_REMOTE_ADDR"))
print(os.getenv "NCAT_REMOTE_ADDR")