09.02.2014 Views

Windows sysinternals

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5 Autoruns 167<br />

include the omitted rows. And if any files had signature verification attempted, the saved file<br />

will retain the results of those verifications.<br />

You can automate the capture of Autoruns data and saving it to a .arn file with the –a<br />

command-line option. The following command captures the state of autostart entries on the<br />

system to outputfile.arn, using default Autoruns options:<br />

Autoruns -a outputfile.arn<br />

To add signature verification, include the –v option. Make sure not to put it between the –a<br />

and the file name:<br />

Autoruns -v -a outputfile.arn<br />

Viewing and Comparing Saved Results<br />

To view the .arn file on the same or another system, choose Open from the File menu and<br />

select the saved file.<br />

To compare the results displayed in Autoruns—whether it’s a fresh capture or from a saved<br />

file—choose Compare from the File menu and select the saved file to compare the displayed<br />

results against. Entries that have changed between the two sets are highlighted in green, as<br />

are any entries that were added in the first set and weren’t found in the “compare” set. Note<br />

however, that items that were deleted aren’t displayed. One workaround that will show these<br />

as well is to save the sets as FileOne.arn and FileTwo.arn, open FileOne.arn and compare<br />

FileTwo.arn, and then open FileTwo.arn and compare FileOne.arn.<br />

AutorunsC<br />

AutorunsC is a console-mode version of Autoruns that outputs results to its standard output.<br />

It is designed primarily for use in scripts. Its purpose is data collection only: it cannot disable<br />

or delete any autostart entries.<br />

The command-line options are listed in Table 5-11. They let you capture all autostarts or just<br />

specific categories, verify digital signatures, omit Microsoft entries, specify a user account for<br />

which to capture autostarts, and output results as comma-separated values (CSV) or as XML.<br />

If you don’t specify any options, AutorunsC outputs just the Logon entries without signature<br />

verification and in an indented list format designed for human reading.<br />

Whether in the default list format, CSV, or XML, AutorunsC’s output always includes the ASEP<br />

location, entry name, description, publisher, image path, and whether the entry is enabled. It<br />

also includes the MD5, SHA-1, and SHA-256 hashes of the image file.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!