This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set objShell = WScript.CreateObject("WScript.Shell") | |
objShell.Run("C:\yourbatch.bat"), 0, True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
File.open("License.txt") do |f| #open file | |
f.each_line do |line| | |
text = [/sh/, /123/] #array for searching | |
if line =~ text[0] || text[1] #searching in file | |
puts "[+] Found License: #{line}" #puts founding word | |
else | |
puts "[+] License is not found!" | |
end |