Kry*_*ian 4 linux steganography metadata
我读了一篇关于新隐写方法的文章:“时间站在我这边:文件系统元数据中的隐写术” http://www.sciencedirect.com/science/article/pii/S1742287616300433。这很有趣,让我思考一件事。
是否可以在 Linux 操作系统中使用 C 或任何其他语言来操作文件修改/访问/更改时间元数据?我找到了使用触摸命令的方法,但它创建了具有特定标记值的文件。我想找到一种方法来修改现有元数据。
Kry*_*ian 10
使用触摸命令您可以编辑文件的时间元数据。例子:
touch -a -t 201611161200.10 file.txt
Run Code Online (Sandbox Code Playgroud)
它将导致修改访问时间戳,并将其替换为日期 2016-11-16 12:00:10.000000000 要更改“修改”日期,您应该使用标志-m
我遇到了这个帖子,我不得不分享我的发现(正如前面提到的,这个网站是一个知识库):
“ touch ”是一个命令行应用程序,为了执行它(从 C++ 应用程序),您需要运行 system() ,但不鼓励这样做。有关触摸的更多信息: http: //www.linfo.org/touch.html
The programmatic way to set the access and modification timestamps of a file is using one of the following system calls: utime, utimes, futimes, futimens (simple internet search will give you the man page of them) i.e http://www.tin.org/bin/man.cgi?section=2&topic=utimensat
Linux has 3 time stamps associated to a file:
It's relatively easy to modify the 'access' and 'modify' timestamps using the above commands, but modifying the change timestamp (last time permissions were changed) is harder. Thread on this here: Setting creation or change timestamps
| 归档时间: |
|
| 查看次数: |
13212 次 |
| 最近记录: |