Jump to content

read lines from file and include un script at runtime


COD3369
 Share

Recommended Posts

If you want to output all records in your array you could use _ArrayDisplay.

#include <Array.au3>
#include <File.au3>
Global $aRecords
If Not _FileReadToArray("data.html", $aRecords) Then Exit MsgBox(4096, "Error", " Error reading log to Array error: " & @error)
_ArrayDisplay($aRecords)

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

But you should either get the MsgBox with the error message or the array displayed. What do you get?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

What do you get from this script:

#include 
Global $aRecords
Global $iResult = _FileReadToArray("data.html", $aRecords)
MsgBox(0, "", "Result of _FileReadToArray: " & $iResult & "-" & @error & "-" & @extended & @CRLF & "IsArray: " & IsArray($aRecords))

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

<tr>
<td>MyWOT</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.mywot.com/en/scorecard/comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>AMaDa</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://amada.abuse.ch/?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>MalwareDomainList</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malwaredomainlist.com/mdl.php?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>malc0de</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://malc0de.com/database/index.php?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>ZeuS Tracker</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="https://zeustracker.abuse.ch/monitor.php?host=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SpyEye Tracker</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="https://spyeyetracker.abuse.ch/monitor.php?host=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>EXPOSURE</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://exposure.iseclab.org/cgi-bin/search.py?domain_name=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>Malware Patrol </td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malware.com.br/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>PhishTank</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.phishtank.com/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>WebSecurityGuard</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.websecurityguard.com/results.aspx?qkw=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SURBL</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.surbl.org/surbl-analysis" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SCUMWARE</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.scumware.org/search.scumware" target="_blank">More Details</a></td>
</tr>
<tr>
<td>URIBL</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.uribl.com/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>MalwareBlacklist</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malwareblacklist.com/searchClearingHouse.php?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>hpHosts</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://hosts-file.net/?s=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>BrowserDefender</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.browserdefender.com/site/comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>TrendMicro</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://global.sitesafety.trendmicro.com/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>GoogleSafeBrowsing</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.google.com/safebrowsing/diagnostic?site=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SpamhausDBL</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.spamhaus.org/query/domain/comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>DNS-BH</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malwaredomains.com/" target="_blank">More Details</a></td>
</tr>
</tbody>
</table>

i am trying to fetch this data

Link to comment
Share on other sites

Do you use Microsoft Internet Explorer as your browser? You could then use the builtin IE UDF to access the content of the table.

Because when you use _FileReadToArray you have to strip off all those html tags.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="comodo.com safe, check website for scam, trustworthy website, website phishing check, ip address website, hosting provider information, website traffic statistics" />
<meta name="description" content="Is comodo.com safe and legitimate website ? Is comodo.com infected with virus ? Check if comodo.com is a trustworthy website." />
<title>comodo.com safe ? View website safety report with URLVoid.com</title>

<style type="text/css">
<!--
  @import url("/css/styles.css");
  @import url("/css/ui-lightness/jquery-ui.css");
  @import url("/css/home.css");
  @import url("/css/blue/style.css");
//-->
</style>

<script type="text/javascript" src="/js/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui.js"></script>
<script type="text/javascript" src="/js/jquery.tablesorter.min.js"></script>
</head>
<body>
<div id="page">
<div id="header">
  <div id="logo"><a href="http://www.urlvoid.com/"><b>URL</b>Void</a></div>
  <ul id="nav">
   <li><a href="/">Home</a></li>
<li class="dropdown">
<a href="http://www.urlvoid.com/tools/">Tools</a>
<ul>
  <li><a href="http://myip.urlvoid.com/">My IP Address</a></li>
  <li><a href="http://dnslookup.urlvoid.com/">DNS Lookup</a></li>
  <li><a href="http://dnsrecords.urlvoid.com/">DNS Records</a></li>
  <li><a href="http://ping.urlvoid.com/">Ping Host</a></li>
  <li><a href="http://iplookup.urlvoid.com/">IP Lookup</a></li>
  <li><a href="http://htmlview.urlvoid.com/">URL Content Dump</a></li>
  <li><a href="http://httpheaders.urlvoid.com/">HTTP Headers</a></li>
  <li><a href="http://unshortenurl.urlvoid.com/">Unshorten URL</a></li>
  <li><a href="http://urldecode.urlvoid.com/">URL Decode</a></li>
  <li><a href="http://urlencode.urlvoid.com/">URL Encode</a></li>
  <li><a href="http://sslcheck.urlvoid.com/">SSL Check</a></li>
  <li><a href="http://strtoupper.urlvoid.com/">String Uppercase</a></li>
  <li><a href="http://strtolower.urlvoid.com/">String Lowercase</a></li>
  <li><a href="http://md5hash.urlvoid.com/">MD5 Hash</a></li>
  <li><a href="http://shahash.urlvoid.com/">SHA-1 Hash</a></li>
  <li class="last"></li>
</ul>
</li>
<li><a href="/statistics/">Statistics</a></li>
<li class="dropdown">
<a href="#">Network</a>
<ul>
  <li><a href="http://www.novirusthanks.org/">NoVirusThanks</a></li>
  <li><a href="http://www.malwarehash.com/">Malwarehash</a></li>
  <li><a href="http://www.ipvoid.com/">IPVoid</a></li>
  <li><a href="http://www.urlvoid.com/">URLVoid</a></li>
  <li class="last"></li>
</ul>
</li>
<li><a href="http://www.urlvoid.com/about-us/">About Us</a></li>
  </ul>
</div>

<div id="content">
   <h2>Scan Report</h2>
<script type="text/javascript">
<!--
$(document).ready(function(){
$("#report").prepend( $("#rescan") );
$("#rescan-link").show();
$("#rescan-link a").click(function(){
  $("#rescan").show();
});

$("#scan-form").submit(function(){
  var d = $("input[name=url]").val().replace("http://","");
  if ( d.indexOf("/") != -1 ) d = d.substr( 0, d.indexOf("/") );
  if ( d.indexOf("www.") != -1 && d.indexOf("www.") === 0 ) d = d.substr( 4 );
  $(this).attr("action","/scan/"+d).submit();
});
$("#scan-form input[name=close]").click(function(){
  $("#rescan").hide();
});
});
//-->
</script>
<div class="overlayer hidden" id="rescan">
<div>
  <form method="post" action="" class="form" id="scan-form">   
   <p><script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6LcAU88SAAAAAA1wIhng3Rjk3GJCvCqrWJB8Y-CW"></script>
<noscript>
    <iframe src="http://www.google.com/recaptcha/api/noscript?k=6LcAU88SAAAAAA1wIhng3Rjk3GJCvCqrWJB8Y-CW" height="300" width="500" frameborder="0"></iframe><br/>
    <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
    <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript></p>
   <p><input type="submit" name="go" value="Rescan Now" class="scanbtn" /></p>
   <p><input type="button" name="close" value="Cancel" class="scanbtn" /></p>
  </form>
</div>
</div>
<div class="overlayer hidden" id=overlay>
<div>   
   
</div>
</div>
<script type="text/javascript">
<!--
$(document).ready(function(){
$("#more-options").click(function(){
  $("#overlay div").html( '<h2>Additional Services</h2>
                                      <a href="http://vscan.novirusthanks.org/?url=http://comodo.com&submiturl=Submit+Address" target="_blank">Scan with NoVirusThanks</a><br />Use multiple AntiVirus engines to scan the website.
                                      <br /><a href="http://www.scanurls.com/" target="_blank">Scan with ScanURLs</a><br />Scan in real-time the website using our own malware signatures.
              <br /><a href="http://www.htmlsniffer.com/" target="_blank">View HTML Source</a><br />Dump the entire page content of a remote URL.
                                      <br /><br /><a href="javascript:void(0);">Close</a>' );
  $("#overlay").show(); 
});
$("#ip-history").click(function(){
  var el = $(this);
  $.get("/uapi/history/",{domain:8610},function(data){
   $("#overlay div").html(data);
   $("#overlay").show();
  });
});

$("#overlay > div > a").live("click",function(){
  $("#overlay").hide();
});

$("a.sh").click(function(){
  var state = $(this).children("span").html(),
   new_state = state == 'Collapse' ? 'Expand' : 'Collapse'
  $(this).children("span").html( new_state );
  $(this).children("img").attr( "src", "/images/" + new_state + ".png" );
  $("tbody.collapse").toggle('slow');
});
$(".tablesorter-cl").tablesorter({
        headers: {
   2: {
          sorter: false
      },
            3: {
                sorter: false
            }
        }
    }); 
$("#hosted").tablesorter({
        headers: {
   1: {
          sorter: false
      },
   2: {
          sorter: false
      },
   3: {
          sorter: false
      }
        }
    });
});
//-->
</script>
<p><a href="http://www.urlvoid.com/scan/comodo.com">Permalink</a> | <a href="mailto:?subject=Scan report for comodo.com?&body=Link: http://www.urlvoid.com/scan/comodo.com">Email a Friend</a> | <a href="javascript:window.print();">Print this Page</a></p>
   
<div style="margin: 15px 0 15px 0; text-align: left; width: 728px; border: 1px solid #ccc;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2303590238526826";
/* 728x90, creato 24/05/11 */
google_ad_slot = "4012205729";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div id="tabled">
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
   <tr>
    <td width="25%">Report:</td>
    <td id="report"><span id="rescan-link" class="hidden"><a href="javascript:void(0);">Rescan</a>
     &nbsp;|&nbsp;&nbsp;</span>21-03-2012, 06:52:02 GMT (7 months ago)
    </td>
   </tr>
   <tr>
    <td>Domain:</td>
    <td><b>comodo.com</b> (<a href="javascript:void(0);" id="more-options">More Options &rarr;</a>)</td>
   </tr>
  </tbody>
  <tbody class="collapse">
   <tr>
    <td>Length:</td>
    <td>10 characters</td>
   </tr>
   <tr>
    <td>MD5 Hash:</td>
    <td>ec487e0d028034d8dadae326d57d5206</td>
   </tr>
   <tr>
    <td>Zone:</td>
    <td>com</td>
   </tr>
   <tr>
    <td>ISP:</td>
    <td>Comodo CA Ltd</td>
   </tr>
   <tr>
    <td>Organization:</td>
    <td>Comodo CA Ltd</td>
   </tr>
  </tbody>
  <tbody>
   <tr valign="top">
    <td>IP Address:</td>
    <td>
     <a href="/ip/91.199.212.176/">91.199.212.176</a> <a href="javascript:void(0);" id="ip-history">(View History)</a> (<a href="http://www.ipvoid.com/scan/91.199.212.176" title="Scan IP Address with IPVoid.com" target="_blank">Scan with IPVoid</a>) 
    </td>
   </tr>
  </tbody>
  <tbody class="collapse">
   <tr valign="top">
    <td>IP Hostname:</td>
    <td>www.comodo.com</td>
   </tr>
   <tr>
    <td>IP Country:</td>
    <td><img src="/images/flags/gb.gif" alt="United Kingdom" /> United Kingdom (GB)</td>
   </tr>
   <tr>
    <td>Google Page Rank:</td>
    <td><img src="/images/primages/pr7.gif" alt="7" /></td>
   </tr>
   <tr>
    <td>Alexa Rank:</td>
    <td>3600</td>
   </tr>
   <tr>
    <td>Domain Created:</td>
    <td>Unknown </td>
   </tr>
  </tbody>
  <tbody>
   <tr>
    <td>Detections</td>
    <td>0/20 (0.00%)</td>
   </tr>
   <tr>
    <td>Status</td>
    <td><img src="/images/detected.png" alt="detected" /> <span style="color:#800; font-weight: bold;">DETECTED</span> </td>
   </tr>
  </tbody>
</table>
</div>  

<table width="100%" cellspacing="10" cellpadding="0">
<tr>
  <td width="25%"></td>
  <td><a href="javascript:void(0);" class="sh"><span>Expand</span> <img src="/images/Expand.png" alt="" /></a></td>
</tr>
</table>
<div style="margin: 15px 0 15px 0; text-align: left; width: 728px; border: 1px solid #ccc;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2303590238526826";
/* 728x90, creato 24/05/11 */
google_ad_slot = "4012205729";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

<table width="100%" cellpadding="0" cellspacing="0" class="tablesorter tablesorter-cl">
<thead>
<tr>
  <th width="25%">Engine</th>
  <th width="30%">Status</th>
  <th>Link</th>
</tr>
</thead>
<tbody>
<script type="text/javascript">
<!--
$(document).ready(function(){
$("#ip-history").hide();
});
//-->
</script>
<tr>
<td>MyWOT</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.mywot.com/en/scorecard/comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>AMaDa</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://amada.abuse.ch/?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>MalwareDomainList</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malwaredomainlist.com/mdl.php?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>malc0de</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://malc0de.com/database/index.php?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>ZeuS Tracker</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="https://zeustracker.abuse.ch/monitor.php?host=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SpyEye Tracker</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="https://spyeyetracker.abuse.ch/monitor.php?host=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>EXPOSURE</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://exposure.iseclab.org/cgi-bin/search.py?domain_name=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>Malware Patrol </td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malware.com.br/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>PhishTank</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.phishtank.com/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>WebSecurityGuard</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.websecurityguard.com/results.aspx?qkw=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SURBL</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.surbl.org/surbl-analysis" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SCUMWARE</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.scumware.org/search.scumware" target="_blank">More Details</a></td>
</tr>
<tr>
<td>URIBL</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.uribl.com/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>MalwareBlacklist</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malwareblacklist.com/searchClearingHouse.php?search=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>hpHosts</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://hosts-file.net/?s=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>BrowserDefender</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.browserdefender.com/site/comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>TrendMicro</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://global.sitesafety.trendmicro.com/" target="_blank">More Details</a></td>
</tr>
<tr>
<td>GoogleSafeBrowsing</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.google.com/safebrowsing/diagnostic?site=comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>SpamhausDBL</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.spamhaus.org/query/domain/comodo.com" target="_blank">More Details</a></td>
</tr>
<tr>
<td>DNS-BH</td>
<td><img src="/images/clean.png" alt="" /> <span style="color:#060; font-weight: bold;">CLEAN<span></td>
<td><a rel="nofollow" href="http://www.malwaredomains.com/" target="_blank">More Details</a></td>
</tr>
</tbody>
</table>
<p><b>Hosted in 91.199.212.176 (1)</b></p>
<table width="100%" cellpadding="0" cellspacing="0" class="tablesorter" id="hosted">
<thead>
<tr>
  <th width="25%">Domain</th>
  <th width="30%">Last Report</th>
  <th>Status</th>
</tr>
</thead>
<tbody>
<tr>
  <td width="25%"><a href="/scan/dndstation.com/">dndstation.com</a></td>
  <td>06-07-2012, 06:51:14</td>
  <td><img src="/images/clean.png" alt="CLEAN" title="CLEAN" /></td>
</tr>
</tbody>
</table>
<p><b>Alexa Rank</b></p>
<p><a rel="nofollow" href="http://www.alexa.com/siteinfo/comodo.com"><img alt="Alexa Rank" src="http://traffic.alexa.com/graph?&w=600&h=260&o=f&c=1&y=t&b=FFFFE5&n=666666&r=3m&u=comodo.com" /></a></p>
<p><b>Alexa Reach</b></p>
<p><a rel="nofollow" href="http://www.alexa.com/siteinfo/comodo.com"><img alt="Alexa Reach" src="http://traffic.alexa.com/graph?w=600&h=260&o=f&c=1&y=r&b=FFFFE5&r=6m&u=comodo.com" /></a></p>
<div style="margin: 15px 0 15px 0; text-align: left; width: 728px; border: 1px solid #ccc;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2303590238526826";
/* 728x90, creato 24/05/11 */
google_ad_slot = "4012205729";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- Seconds: 0.15090298652649 -->
  
</div>

<div id="bottom">
  <ul>
      <li>
       <h2>Quick Links</h2>
       <ul>
         <li><a href="http://www.urlvoid.com/">Homepage</a></li>
         <li><a href="http://www.novirusthanks.org/about-us/">Our Company </a></li>
         <li><a href="http://www.novirusthanks.org/contacts/">Contact Us </a></li>
       </ul>
      </li>
   <li>
    <h2>Network</h2>
       <ul>
         <li><a href="http://www.novirusthanks.org/">NoVirusThanks.org </a></li>
         <li><a href="http://www.urlvoid.com/">URLVoid.com </a></li>
         <li><a href="http://www.malwarehash.com/">Malwarehash.com </a></li>
       </ul>
      </li>
      <li>
       <h2>Software</h2>
    <ul>
     <li><a href="http://www.novirusthanks.org/product/exe-radar-pro/">EXE Radar Pro</a></li>
     <li><a href="http://www.novirusthanks.org/product/smart-pc-locker-pro/">Smart PC Locker Pro</a></li>
     <li><a href="http://www.novirusthanks.org/product/npe-file-analyzer/">NPE File Analyzer</a></li>
    </ul>
      </li>
      <li>
       <h2>Services</h2>
       <ul>
         <li><a href="http://vscan.novirusthanks.org/">Online Virus Scanner</a></li>
         <li><a href="http://www.urlvoid.com/">Web Reputation Scanner</a></li>
         <li><a href="http://www.malwarehash.com/">Malware Hash</a></li>
       </ul>
      </li>
    </ul>
  </div>
<div id="footer">
  Copyright &copy; 2010-2012 <a href="http://www.novirusthanks.org/">NoVirusThanks Company Srl</a> | All rights reserved | <a href="http://www.urlvoid.com/eula/">Terms & Privacy Policy</a>
</div>
</div>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-15146193-7']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
= true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www')
+ '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
  })();
</script>
</body>
</html>

this is my real file

Link to comment
Share on other sites

Doesn't matter. An URL can be a local file as well. If you open it with the IE UDF you can search for the table and return the content of the table in an array.

Have a look at function _IETableWriteToArray.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • 2 weeks later...

#include <file.au3>
Global $aFilecontents
_FileReadToArray("C:yourfilenamehere.txt", $aFilecontents) ;read the file into an array
_FileWriteFromArray("C:yournewfilenamehere.txt", $aFilecontents, 35) ; write lines 35 to the end of the file to a new file

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

  • 4 months later...

#include 
#include 
#include 
#include 
#include 
#include 
$Form1_1 = GUICreate("Concrese Payload Setting Encrypter v1.0.0.0", 599, 366, 201, 134)
GUISetIcon("D:\CODE\CopyPen.exe", -1)
GUISetFont(10, 400, 0, "Calibri")
$Group1 = GUICtrlCreateGroup(" FTP Control ", 16, 32, 569, 153)
$Input1 = GUICtrlCreateInput("", 120, 80, 441, 23)
$Input2 = GUICtrlCreateInput("", 120, 112, 441, 23)
$Input3 = GUICtrlCreateInput("", 120, 144, 441, 23)
$Label1 = GUICtrlCreateLabel("FTP Server:", 32, 80, 63, 19)
$Label2 = GUICtrlCreateLabel("FTP Username:", 32, 112, 84, 19)
$Label3 = GUICtrlCreateLabel("FTP Password:", 32, 144, 83, 19)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup(" Encryption Control ", 16, 200, 569, 97)
$Input4 = GUICtrlCreateInput("", 120, 264, 209, 23)
GUICtrlSetFont(-1, 10, 800, 0, "Calibri")
GUICtrlSetColor(-1, 0xFF0000)
$Label4 = GUICtrlCreateLabel("Encryption Key:", 32, 264, 88, 19)
$Label7 = GUICtrlCreateLabel("Encryption No:", 32, 232, 84, 19)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Icon1 = GUICtrlCreateIcon("C:\Users\Tushar\Downloads\Hide-password.ico", -1, 24, 184, 48, 48)
$Icon2 = GUICtrlCreateIcon("C:\Users\Tushar\Downloads\Location-FTP.ico", -1, 24, 16, 48, 48)
$Button1 = GUICtrlCreateButton("Encrypt and Compile", 96, 312, 169, 33)
$Button2 = GUICtrlCreateButton("Exit", 440, 312, 145, 33)
$Button3 = GUICtrlCreateButton("About", 272, 312, 161, 33)
$Label5 = GUICtrlCreateLabel("Welcome", 392, 8, 82, 19)
$Label6 = GUICtrlCreateLabel( @UserName, 472, 8, 40, 19)
GUICtrlSetFont(-1, 10, 800, 0, "Calibri")
GUICtrlSetColor(-1, 0x0000FF)
$Input5 = GUICtrlCreateInput("", 120, 232, 25, 23)
$Label8 = GUICtrlCreateLabel("AES128 Bit AES192 Bit AES256", 360, 224, 187, 19)
GUICtrlSetColor(-1, 0x0000FF)
$Label9 = GUICtrlCreateLabel("1 2 3", 382, 244, 148, 19)
GUICtrlSetFont(-1, 10, 800, 0, "Calibri")
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
$1 = $CALG_AES_128
$2 = $CALG_AES_192
$3 = $CALG_AES_256

$file = FileOpen ( "Temp.ini" )
$outputf = "Config.ini"

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Input1
$rInput1 = GUICtrlRead ( $Input1 )
Case $Input2
$rInput2 = GUICtrlRead ( $Input2 )
Case $Input3
$rInput3 = GUICtrlRead ( $Input3 )
Case $Input4
$rInput4 = GUICtrlRead ( $Input4 )
Case $Input5
$rInput5 = GUICtrlRead ( $Input5 )

case $Button2
Exit

Case $Button1
FileWriteLine ( "Temp.ini" , "[ConcreseConfig]")
FileWriteLine ( "Temp.ini" , "FTPServer=" & $rInput1 )
FileWriteLine ( "Temp.ini" , "FTPUser=" & $rInput2 )
FileWriteLine ( "Temp.ini" , "FTPPass=" & $rInput3 )
_Crypt_EncryptFile( $file , $outputf , $rInput5 , $rInput4 )

EndSwitch
WEnd

any idea why its not encrypting the file ??

Link to comment
Share on other sites

Because _Crypt_EncryptFile needs a path and file name, not a file handle.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...