Tag Archives: #bash

Fortinet webfilter test


# cat getthefilter.sh

#!/bin/bash
#wget http://fortiguard.com/webfilter
#New url..
wget http://fortiguard.com/webfilter/categories
grep wftest categories > raw
IN=`cat raw`
links=$(echo $IN | tr '"' "\n")
for addr in $links
do
if [[ $addr == *"html"* ]];then
echo $addr >> targets
fi
done

targets=`cat targets`
for filtaddr in $targets
do
echo http://fortiguard.com"$filtaddr"
wget -o /dev/null --spider -t 1 http://fortiguard.com"$filtaddr"
done
#rm raw targets webfilter

Trying out Windows Subsystem for Linux on Windows 10.

It is on… Trying out the … scary co-inhabitant partnership that currently is undergoing a beta period.
installingubuntu

Point here is (according to a terrible video by MS) is that it is “brand new”. They seem to have forgotten their old subsystem for UNIX, that was.. horrid – and not even close to something that at least today should be able to touch production machines.

However.. They did stress quite a lot that it is still beta, and only a small subset of actual syscalls via the “adapter” works against the NT Kernel.
No suprises there at all. We will see how many they might be able to cover, and if it might even be proven to gain any kind of trust.

For the real world – the primary claim is that it will work perfectly for developers etc.. I would say it would prolly work as at best a better approach than pulling out resources for a virtual machine.

They seem to take pride in that it will share the current network stack – that we all know is fracked from the beginning. Windows can barely handle anything in this sense, and workload, no – this is only for simple tasks, and a easier way on a local machine to get you hopefully at least the normal GNU toolset to work out of the box.

bashrunning

At least – getting it to run is easy.

To get this horrid beta on your machine – first you need to grab a beer. Then some coffee, then I would say either a bottle of whiskey or a energy drink.

Step by step …

1 – Jump onto your windows 10 box, login, grab the first beer.
2 – register for Windows Insider Previews
3 – dig into the updates and advanced settings, input your account details for the preview
4 – guessing a reboot, and a new beer.
5 – now, go back to the insider preview part in updates – adjust the slider to the outer dangerous position. Grab coffee or whiskey..
6 – reboot – refill drink
7 – Reboot a couple of more times
8 – Apply all the patches, reboot
9 – Do all the logins, verify that your screen is now filled in the lower right corner with at least build number 14332
10 – grab the turn windows features on and off – locate the magical new windows subsystem for linux (beta)
11 – reboot
12 – login again, grab a new drink
13 – punch in bash and accept the canonical licence if you dare, create a local account
14 – grab hopefully that last drink
15 – wait for it to download the ubuntu data, from the microsoft market…
16 – wait for it..
17 – WE HAVE ARRIVED.
topinbash

(PS – Seems like they fixed top, kinda – DS.)

Toy around. Enjoy – destroy – and remember – even if this leaves beta – we rely on the NT Kernel, The underlying windows features – Windows networkstack – and the permission of Microsoft to use our software…

Shellshock / Bash vuln – fix for Debian 6.0 / Squeeze.

Edit/ Append the following to your /etc/apt/sources.list;

#Added due to shellshock
deb http://ftp.se.debian.org/debian/ squeeze-lts main contrib non-free
deb-src http://ftp.se.debian.org/debian/ squeeze-lts main contrib non-free

Run the following:

apt-get update && apt-get install -t squeeze-lts --only-upgrade bash

Bash should now look like this:

# apt-cache show bash
Package: bash
Essential: yes
Priority: required
Section: shells
Installed-Size: 3536
Maintainer: Matthias Klose
Architecture: amd64
Version: 4.1-3
Replaces: bash-completion (<< 20060301-0), bash-doc (<= 2.05-1) Depends: base-files (>= 2.1.12), debianutils (>= 2.15)
Pre-Depends: dash (>= 0.5.5.1-2.2), libc6 (>= 2.4), libncurses5 (>= 5.7+20100313)
Recommends: bash-completion (>= 20060301-0)
Suggests: bash-doc
Conflicts: bash-completion (<< 20060301-0) Filename: pool/main/b/bash/bash_4.1-3_amd64.deb Size: 1325432 MD5sum: c4dcf905726e22a0dca526464a7a3c70 SHA1: 51a64b9b8d13106a22708a3290c72f4ff454b620 SHA256: 4987e65ab86eae31215da73c7ab624f66fc4ad9deeb5147850ceae3c16ab67a6 Description: The GNU Bourne Again SHell Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh). . Bash is ultimately intended to be a conformant implementation of the IEEE POSIX Shell and Tools specification (IEEE Working Group 1003.2). . The Programmable Completion Code, by Ian Macdonald, is now found in the bash-completion package. Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Tag: implemented-in::c, interface::shell, role::program, scope::utility, suite::gnu, uitoolkit::ncurses Package: bash Version: 4.1-3+deb6u2 Essential: yes Installed-Size: 3592 Maintainer: Matthias Klose
Architecture: amd64
Replaces: bash-completion (<< 20060301-0), bash-doc (<= 2.05-1) Depends: base-files (>= 2.1.12), debianutils (>= 2.15)
Pre-Depends: dash (>= 0.5.5.1-2.2), libc6 (>= 2.4), libncurses5 (>= 5.7+20100313)
Recommends: bash-completion (>= 20060301-0)
Suggests: bash-doc
Conflicts: bash-completion (<< 20060301-0) Description: The GNU Bourne Again SHell Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh). . Bash is ultimately intended to be a conformant implementation of the IEEE POSIX Shell and Tools specification (IEEE Working Group 1003.2). . The Programmable Completion Code, by Ian Macdonald, is now found in the bash-completion package. Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Tag: implemented-in::c, interface::shell, role::program, scope::utility, suite::gnu, uitoolkit::ncurses Section: shells Priority: required Filename: pool/main/b/bash/bash_4.1-3+deb6u2_amd64.deb Size: 1328258 MD5sum: ecac954e1879785164537809c6d0d053 SHA1: f7d3cf7d97e2416d965f9f11685af1b589586a38 SHA256: 7400f04d074f1699a1993fb79e16d77531fae5739122d87db80ea128cbd62275