Monday, December 25, 2017

Permissions and user rights for IIS 7.0 and later..



This is useful information for IIS servers:

Specify an Identity for an Application Pool (IIS 7)
Read more about  Identities in IIS here..

Default permissions and user rights for IIS 7.0 and later 
Read more about default permissions here..

Understanding Built-In User and Group Accounts in IIS 7
Read more about Built-In user and Group Accounts here..

Wednesday, December 6, 2017

New on Vice: Season 2 of Cyberwar

There is a new season of Cyberwar on Viceland.com:

https://www.viceland.com/en_us/show/cyberwar

Ben Makuch travels the world to meet with hackers, government officials, and dissidents to investigate the ecosystem of cyberwarfare.

Monday, December 4, 2017

Powershell: Counter with speech



This is a basic counter with speech:

# Making a speech object:
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer

# The counter with speech:
$i = 0 
while( $i -le 100){
  $speak.Speak($i)
  $i++
}


Friday, December 1, 2017

Get Bitcoin Price with Powershell

With this function you can get the Bitcoin price as a string value or spoken with Powershell

function Get-BitcoinPrice{

    param (
    [Boolean]$Speech = $false
    )
    
    #Get the current price from coinmarketcap.com
    $content = Invoke-WebRequest -uri https://api.coinmarketcap.com/v1/ticker/bitcoin/
    
    #Select the price from the content
    $found = $content.Content -match "price_usd`": `"(?<price>.*)`"," 

    $price = $matches['price'].ToString()

    #If the parameter -Speech is $true, then you can hear a voice saying the price.
    if($Speech -eq $true){
        Add-Type -AssemblyName System.speech
        $speak = New-Object System.Speech.Synthesis.SpeechSynthesizer

        $speak.Speak("Bitcoin price is $price")
    }

    #The price is returned for future usage.
    Return $price
}

Get-BitcoinPrice -Speech $true

# or

Get-BitcoinPrice