Sunday, June 29, 2008

folder2iso

freeware software to create iso from folder structure. useful fir mounting folders in vmware, creating dvd of files for iso burner to burn



http://www.trustfm.net/divx/SoftwareFolder2Iso.php?b2=1

wall chart

tld wall chart



http://www.visibone.com/countries/countrychart_4080.jpg

Friday, June 27, 2008

vlc streaming

vlc --intf http --sout="#standard{access=http,mux=ts,dst=192.168.19.11:8899}"

dokuwiki

iis and dokuwiki


Setting up dokuwiki on IIS with integrated authentication

unworkable security rules

http://www.acsac.org/2001/papers/110.pdf

Tuesday, June 24, 2008

Tools:Network Forensics

Tools:Network Forensics

Tuesday, June 17, 2008

remove speaker notes from powerpoint slides

Set objPPT = CreateObject("PowerPoint.Application")


objPPT.Visible = True



Set objPresentation = objPPT.Presentations.Open("C:\Scripts\Test.ppt")


Set colSlides = objPresentation.Slides



For Each objSlide in colSlides


objSlide.NotesPage.Shapes(2).TextFrame.TextRange = ""


Next



So how does this chunk of code actually work? Well, to begin with, we create an instance of the PowerPoint.Application object and then set the Visible property to True; that gives us a running instance of PowerPoint that we can see on screen. The moment we have our instance of PowerPoint in hand we use the Open method to open the presentation C:\Scripts\Test.ppt, then use this line of code to retrieve a collection of all the slides in that presentation:



Set colSlides = objPresentation.Slides



And then we stop to catch our breath for a moment. Whew!



Fortunately it’s all downhill from here. To begin with, we set up a For Each loop to loop through each slide in the collection. For each of those slides all we do is execute the following line of code:



objSlide.NotesPage.Shapes(2).TextFrame.TextRange = ""



And you’re right: that is a crazy-looking line of code, isn’t it? Why is it so crazy-looking? Well, as it turns out, each slide has a NotesPage object that contains the speaker notes; the second shape on the NotesPage is a TextFrame object where the notes actually reside. To delete the notes for a given slide we simply need to set the value of the TextFrame’s TextRange property to an empty string.



Wow; now we really need to stop to catch our breath.



Fortunately, though, we’re pretty much done here; all we have to do now is – wait a minute: are you sure you’re one of the first 935 people to read this column? Well, OK; we have to take your word for it. Anyway, all we have to do now is go back to the top of the loop and repeat the process with the next slide in the presentation. And then we go back and do it all over a third time, and then a fourth time, continuing along these same lines until we’ve removed the notes from each and every slide in the presentation.



Now, what if you wanted to do this for all the .PPT files in a folder? Well, that’s easy; all you have to do is run this script:



Set objPPT = CreateObject("PowerPoint.Application")


objPPT.Visible = True



strComputer = "."



Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")



Set FileList = objWMIService.ExecQuery _


("ASSOCIATORS OF {Win32_Directory.Name='C:\Scripts'} Where " _


& "ResultClass = CIM_DataFile")



For Each objFile In FileList


If objFile.Extension = "ppt" Then


Set objPresentation = objPPT.Presentations.Open(objFile.Name)


Set colSlides = objPresentation.Slides


For Each objSlide in colSlides


objSlide.NotesPage.Shapes(2).TextFrame.TextRange = ""


Next


objPresentation.Save


objPresentation.Close


End If


Next



objPPT.Quit



And because someone is bound to ask, what if you did need a script that could echo back the speaker notes for an entire presentation? No problem. The following script opens the file Test.ppt and retrieves a collection consisting of all the slides in that presentation. For each slide the script echoes back the slide title (objSlide.Shapes(1).TextFrame.TextRange) and the speaker notes:



Set objPPT = CreateObject("PowerPoint.Application")


objPPT.Visible = True



Set objPresentation = objPPT.Presentations.Open("C:\Scripts\Test.ppt")


Set colSlides = objPresentation.Slides



For Each objSlide in colSlides


Wscript.Echo objSlide.Shapes(1).TextFrame.TextRange


Wscript.Echo objSlide.NotesPage.Shapes(2).TextFrame.TextRange


Wscript.Echo


Next



That should do it, TW; we hope you find this script useful, and we hope you enjoyed the 935thHey, Scripting Guy! column. We should level with you, however: believe it or not, there really isn’t any significance to the number 935. (Although 935 was the year when Haakon the Good, son of Harald Fairhair, reunited the Norwegian lands.) The truth is, we decided to celebrate column 935 for one reason and one reason only: when you’re a Scripting Guy, you never know when a given column might be your last. See you all tomorrow!

rdp tables metric version

The RDP has three tables...



Table 1 shows how depths and times interact to yield a certain nitrogen load. Depths are in metere and times are in minutes; Nitrogen levels are expressed with letter designations A-Z. A is little. Z is a lot. We call these letter designations pressure groups, abbreviated "pg".



Table 2 shows time intervals spent on the surface following a dive. When you surface after a dive your body begins losing the nitrogen built up during the dive. This table lets you know how much. The period of time spent on the surface in between dives is called the surface interval, abbreviated "si".



Table 3 is on the flip side of the RDP. (It is not labeled "Table 3" but that's what we'll call it from now on.) Use it to plan repetitive dives. If you do only one dive in a day, you won't need this table.



We've worked out some sample dive profiles to give you practice using the RDP. Read the instruction manual that came with your RDP and then work through these problems. If you get stuck, review the instruction manual and read the step-by-step solution we've given you after each example.



Get into the habit of using a dive planning profile for every dive. It looks like this.



diveprofile.jpg


Example 1


Finding a No-decompression Limit



What is the no-decompression limit for a dive to 14 meters?



To find this answer use Table 1. Note that depths in meters are given in the top row of the table. Find 14 meters. Follow down the column under 14 meters until you come to the last box. It is highlighted in black. It says 98 minutes. This is the no-decompression limit in minutes for a dive to 14 meters. (The no-decompression limit for each depth is in the last box in the column for that depth and is highlighted in black.)


Example 2


Finding the Pressure Group After a Single Dive



You dive to 14 meters and stay down for 32 minutes. What is your pressure group at the end of the dive?



Draw the diagram filling in all the information you have.





diveprofile2a.jpg



Next, find the depth in the top row of table 1. Follow down in the column under 14 meters until you find 32 minutes. Now, follow the row with 32 minutes to the left until you find a letter, in this case, the letter "H." The table is telling you that after a dive to 14 meters for 32 minutes, you are in pressure group "H." Write the "H" in your dive profile diagram.





diveprofile2B.jpg




ALWAYS Round Up!


ALWAYS Round Up!



Pop Quiz: When using the tables, if the exact depth or time you're working with is not on the table, should you round UP or DOWN?)



Do this next profile. It demonstrates how to calculate a dive when the exact depth and/or time you're using is not on the table.



diveprofile2c.jpg





Find the dive depth in table 1. Fifteen meters is not on the table so round up to the next greatest depth, in this case 16 meters. (ALWAYS round up. It makes your dive planning more conservative and therefore safer.) Follow down the 16 meter column to find 33 minutes. It's not on the table either. Again, ROUND UP, in this case, to 35 minutes. To find your ending pressure group, follow the 35-minute row to the right until you meet the letter "K." "K" is your ending pressure group after a dive to 15 meters for 33 minutes.




Example 3


Finding the Pressure Group After a Surface Interval



In Problem 2 you ended a dive in pressure group K. What will the new pressure group be after you stay on the surface for 28 minutes?



diveprofile3a.jpg





To find this answer starting from the pressure group designation K on the table, continue following in that row until you find 28 minutes (:28). In this case you'd choose the box with :23 to :29 minutes since 28 minutes is between the two. From that box, follow the column straight down to the bottom to the letter G. Gis the new pressure group after a 28-minute surface interval.





diveprofile3b.jpg




Example 4


Finding the Maximum Allowable Bottom Time for a Repetitive Dive



diveprofile4a.jpg





In problem 3 you ended in pressure group G after your first dive and a surface interval. Now you want to make another dive to 14 meters. What is the maximum allowable bottom time for this dive?



This is a repetitive dive so you will use the table on the flip side of the RDP. The depths in meters run down the left side of the table. Pressure groups run across the top of the table. Since you are in pressure group G, find G on the top row of the table. Now find the depth you plan to dive to, 14 meters. Find the square where 14 meters and pressure group G intersect. There are two numbers in the box, one blue and one white. The blue number is the maximum allowable bottom time. The answer to this problem is 69 minutes. This tells you that if you are in pressure group G at the start of a dive you can safely dive to 14 meters for no more than 69 minutes.





diveprofile4b.jpg




Example 5


Finding the Pressure Group After a Repetitive Dive



You and your dive buddy dive to 21 meters and stay down for 28 minutes. Following the dive you get back on the boat and stay on the surface for one hour and five minutes. On your second dive you go to 18 meters and stay for 30 minutes (your Actual Bottom Time (ABT). What is your pressure group after the second dive?



diveprofile5a.jpg





Start by finding your pressure group after the first dive. Twenty-one meterrs rounded up to 22 for 28 minutes puts you in pressure group N. After a one hour and five minute surface interval your pressure group has dropped to D. Now flip the chart over to the repetitive dive table. Find pressure group D at the top of the table. Find the depth of the dive, 18 meters, in the column at the left edge of the table. Now find the square where pressure group D and 18 meters intersect. There are two numbers in the square, one blue highlighted, the other white highlighted. The white number is the residual nitrogen time (RNT) in minutes, 16. This number tells you how much nitrogen is left over in your body tissues from your first dive. What do you do with this number? Remember the word "RAT."





R = Residual Nitrogen Time



+ A = Actual Bottom Time



_____________________



T = Total Bottom Time



In our problem:



16



+ 30



________



46



R, the RNT is 16. A, ABT, is 30. Add them together to get what we call the Total Bottom Time (T). Forty-six is the sum of the RNT and the ABT. This time, the Total Bottom Time is what you will use to complete the dive profile.





diveprofile5b.jpg





To get the final pressure group just flip back to table 1. You are diving to 18 meters for 46 minutes (not the actual bottom time of 36 minutes). The result is pressure group R.



diveprofile5c.jpg




Example 6


Finding a Minimum Surface Interval



You may know the exact profiles of dives you'd like to do. For example, if you want to do two dives on a wreck one after another, you would have to figure out how long a surface interval you'll need between the two dives in order to stay safely within no-decompression limits. In other words, you must find the minimum surface interval.



You want to dive the wreck of the Hesperus in 14 meters of water. Based on what you know to be your usual rate of air consumption you estimate you'll be able to stay down for 68 minutes. Since there's so much to see on the wreck that won't be enough time so you want to do a second dive. Again, you'll be in 14 meters of water and will stay down for 68 minutes. How long a surface interval must you have?



Start by finding the pressure group after the first dive. You know how to do that!





diveprofile6a.jpg





After the first dive, you are in pressure group S. Now you have to find the pressure group that you must be in before you start your second dive. Since it's a repetitive dive, use table 3.



Find the depth of the second dive, 14 meters, in the depth column of table 3. Next, follow across the 14 meters row in the blue numbers until you come to a number that is greater than or equal to the time of the second dive, 68 minutes. Sixty-eight minutes is not in the table, so, as always, ROUND UP to 69. Follow up in the column where you find the 69 to the top row of the chart. There you'll find the letter G telling you that you must have a surface interval sufficient to get you down to pressure group G before you start your second dive. Fill it in on your profile.





diveprofile6b.jpg





There's only one more step: find the minimum surface interval needed to reduce your residual nitrogen from pressure group S to pressure group G. Flip to the surface interval table. Find the higher pressure group, S, in the diagonal line of pressure groups bordering the left side of the table. Find the lower pressure group, G, in the row of pressure groups along the bottom of Table 2. Follow across the one and up the other until the S row and G column intersect. There are two times in the box, :57 and 1:03. You want to know the minimum surface interval so the lower of the two numbers is the correct answer. Fifty-seven minutes is your minimum surface interval. Fill it in on your diagram.





diveprofile6c.jpg





Now you've thoroughly learned the RDP. If you ever forget how to use it, read the instruction manual, come back to our website or contact us for help. It's important that you know the RDP even if you have a computer and rely on it. Suppose you spend lots of money to go on a dive vacation and your computer malfunctions before you start your dives. You can whip out your RDP and track your dives with it. Even worse, suppose your computer failed during a series of dives. If you'd kept track of your dives with the RDP as back up for your computer, you could fall back on that and continue your dives. If you don't know where you are on the RDP when your computer fails, the only safe thing to do would be to end your diving for the day. Always using the RDP can be a dive saver.

Friday, June 13, 2008

Experts unveil 'cloak of silence'

http://news.bbc.co.uk/1/hi/sci/tech/7450321.stm

response plan

austin.issa.org/WhitePapers/ISSAITD.pdf



incident response planning

http://www.google.co.uk/search?q=incident+response+planning

forensic readiness

http://www.google.co.uk/search?q=forensic+readiness

incident response planning

http://www.comptechdoc.org/independent/security/policies/incident-response-plan.html

forensicreadiness pdf

www.utica.edu/academic/institutes/ecii/publications/articles/A0B13342-B4E0-1F6A-156F501C49CF5F51.pdf

enterprise web 2.0

http://www.eweek.com/c/a/Security/Key-Scenes-from-Enterprise-20/11/

Sunday, June 8, 2008

powershell and wpf

http://blogs.windowsclient.net/rob_relyea/archive/2008/05/06/powershell-wpf.aspx

hide powershell

Show-PowerShell / Hide-PowerShell

During the Week of WPF, someone requested an example of how to minimize the PowerShell window.

Here's
a quick module to make it happen. Copy/paste the code below into
Documents\WindowsPowerShell\Packages\PowerShell\PowerShell.psm1

$script:showWindowAsync = Add-Type –memberDefinition @”
[DllImport("user32.dll")]
public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
“@ -name “Win32ShowWindowAsync” -namespace Win32Functions –passThru

function Show-PowerShell() {
$null = $showWindowAsync::ShowWindowAsync((Get-Process –id $pid).MainWindowHandle, 10)
}

function Hide-PowerShell() {
$null = $showWindowAsync::ShowWindowAsync((Get-Process –id $pid).MainWindowHandle, 2)
}

Now you can use the code below to Show and Hide PowerShell:

Add-Module PowerShell
# Minimize PowerShell
Hide-PowerShell
sleep 2
# Then Restore it
Show-PowerShell

Hope this Helps,
James Brundage[MSFT]

 
Copyright 2009 Security Monkey. Powered by Blogger Blogger Templates create by Deluxe Templates. Sponsored by: Website Templates | Premium Themes. Distributed by: blog template