1、Windows下实现底层过滤,对word、txt进行透明加密
1、微过滤驱动入门
2、Word文档结构
3、Windbg双机环境配置
4、《FilterDriverDeveloperGuide》
5、《Windows驱动开发技术详解》(内容较老,但作者写的很用心,值得看看)
6、《Windows内核安全编程从入门到实践》(具体的应用教程,工作开始时可以看看)
7、《寒江独钓-Windows内核安全编程》(不是很喜欢此书,个人感觉看得不爽)
8、《Windows驱动编程入门-楚狂人》(楚狂人的手稿不好找,不过可以看看他翻译的过滤驱动开发教程)
9、WDK源码
1、搭配环境,本人采用的是VirtualPC + Windbg
(可以采用VMware + VisualStudio + VisualDDK傻瓜式快速搭配)
2、IRPtrace.exe
3、WinObj.exe
4、DeviceTree.exe
5、DriverMonitor.exe
6、DebugView.exe
四、总述
1、不理解操作系统基本原理,先别搞底层驱动
2、常看别人的源代码,有些教程提供的代码个人不是很看好,如楚狂人、寒江独钓
3、去英文网站上看看,个人首推MSDN,还有一个在这
4、经常与人交流,这个东西只有思想的踫撞才能真正启航
5、写底层驱动还是要有定力,不要自己郁闷死,各位加油!
将文件夹tex打成tar包 tex.tar.gz 并加密
加密tar包并压缩
tar czf – tex | openssl des3 -salt -out tex.tar.gz
解密tar包并且解压缩
openssl des3 -d -salt -in tex.tar.gz | tar xzf -
执行完命令后会提示你输入,加上 -k参数可运用在程序中可自动设置密码。
记得之前写过一个博客,博客内容是计算当前数据库状态,然后利用EXCEL变成可用数据,看那篇文章访问量还挺高的,今天在微软的galary 中闲逛,发现了一个PS脚本,是导出当前的用户数据大小的值的,和对比一段时间数据库大小的值。我们现在不需要对比,只需要得出当前的用户的几个指标,因此我将这段PS代码修改了下,就不再需要利用EXCEL 做数据大小的计算了,代码如下,大家可以把这段代码COPY 到一个NOTEPAD中,然后保存为PS1即可。
#edit by raymond xu,you can contact me by sending mail 10853913@qq.com
param
(
[Switch]$ExportMailboxSize,
[Switch]$CompareMailboxSize,
[String]$LogPath="C:\log",
[String[]]$Identity,
[DateTime]$StartDate,
[DateTime]$EndDate
)
#region Export today's Mailbox Size
if ($ExportMailboxSize)
{
$Counter=0
$UserMailboxStatistics=@()
if(-not ( Test-Path -Path $LogPath))
{
New-Item -ItemType directory -Path $LogPath
}
#Get mailbox identity
if (-not ($Identity))
{
$UserMailboxs=Get-Mailbox -Filter 'RecipientTypeDetails -eq "UserMailbox"' -ResultSize unlimited
}
else
{
$UserMailboxs=$Identity|Get-Mailbox -Filter 'RecipientTypeDetails -eq "UserMailbox"' -ResultSize unlimited
}
#Get SamAccountName,DisplayName and MailboxTotalItemSize for specific users or all users with mailbox.
foreach ($UserMailbox in $UserMailboxs)
{
$Counter++
Write-Progress -Activity "Export MailboxStatistic" -Status "Exporting" -CurrentOperation $UserMailbox.DisplayName -PercentComplete ($counter/($UserMailboxs.Count)*100)
$UserMailboxStatistic = New-Object PSObject
$UserMailboxSizeB = (Get-MailboxStatistics -Identity $UserMailbox).TotalItemSize.Value.tobytes()
$UserMailboxItem = (Get-MailboxStatistics -Identity $UserMailbox).itemcount
$UserMailboxDeleteditem=(Get-MailboxStatistics -Identity $UserMailbox).deleteditemcount
$UserMailboxDeletesizeB=(Get-MailboxStatistics -Identity $UserMailbox).TotalDeletedItemSize.Value.tobytes()
$UserMailboxSizeMB = "{0:#.##}" -f ($UserMailboxSizeB/1mb)
$UserMailboxDeletesizeMB="{0:#.##}" -f ($UserMailboxDeletesizeB/1mb)
$usermailboxstatus=(Get-MailboxStatistics -Identity $UserMailbox).StorageLimitStatus
$UserMailboxStatistic | Add-Member -MemberType NoteProperty -Name "SamAccountName" -Value $UserMailbox.SamAccountName
$UserMailboxStatistic | Add-Member -MemberType NoteProperty -Name "DisplayName" -Value $UserMailbox.DisplayName
$UserMailboxStatistic | Add-Member -MemberType NoteProperty -Name "UserMailboxSizeMB" -Value $UserMailboxSizeMB
$UserMailboxStatistic | Add-Member -MemberType NoteProperty -Name "MailboxItemCount" -Value $UserMailboxItem
$UserMailboxStatistic | Add-Member -MemberType NoteProperty -Name "MailboxDeleteditem" -Value $UserMailboxDeleteditem
$UserMailboxStatistic | Add-Member -MemberType NoteProperty -Name "MailboxDeletedsize" -Value $UserMailboxDeletesizeMB
$UserMailboxStatistic | Add-Member -MemberType NoteProperty -Name "Mailboxstatus" -Value $usermailboxstatus
$UserMailboxStatistics+=$UserMailboxStatistic
}
#Output to a CSV file with date format "yyyy-MM-dd" as default name ,in default path "C:\log". Path can be set by $logpath param.
$UserMailboxStatistics|Export-Csv -Encoding default -NoTypeInformation -Path "$LogPath\$(get-date -Format "yyyy-MM-dd").csv"
}
#endregion
if (-not $ExportMailboxSize -and -not $CompareMailboxSize)
{
Write-Warning -Message "You did not choose any task. Please choose one."
}
把他保存为后缀为PS1的文件,保存即可。我们将文件保存到服务器上,然后以以下方式运行:
就会生成相应的CSV文件,我们文件内容如下:
然后我们用EXCEL 打开,可以很方便的处理相关的数据了,不再需要通过EXCEL 进行很繁琐的运算: