Adventures after installing Kali Linux, guide to the Windows immigrate

install kali... on computer, or dual boot, or just vm or Hyper-V...

and then....

I'm talking today about Kali 2018.1, some things has changes, they removed "gdebi" and "gsku" which suppose to have some problems, there is instead "apt-get install", "dpkg".

all those are... with linux you download Packages, source code, or built source code, and install them. so all those programs knows to extract the package and install them, so it doesn't really matter which you use.

"pkexec" is supposed to replace "sux" or any of "kdesudo/gksu/gksudo", but not doing such a good job, so back to the original "sudo".

the point is that when using kali you usually want to use the root user, but for many programs like chrome you prefer to use another user to protect yourself, so they are wrappers to the "sudo" command for graphical programs, so eventually using "sudo" will do the job most of the time…

Dual Boot Kali Linux v2018.1 With Windows 10

How To Dual Boot Kali Linux v2018.1 With Windows 10... well, theoretically that should be super simple if you have a new installation of WIN10 and no anti-virus ect.
This link here will provide you all you need, except its preferred for rufus to make DD Image.
btw - rebooting with usb
instant reboot UEFI cmd "shutdown /r /fw /t 0"
if fails to load CD-ROM... superuser
But while trying to shrink my 0.5TB hard drive to 250GB-250GB, i kept getting this error message
There is not enough space available on the disk(s) to complete this operation.
Simple answer is that all kind of services are having all kind of clusters around the hard drive that are security locked and you can't touch them.
There is the final simple solution, that might work, and then the long one... Most likely that if you turn off some security features as explained here in super user and even the extras in this link you will be able to then go to the next step.
Next step is to disable the anti-virus, in my …

Install CasperJs on Windows 10

download windows version
npm install -g casperjs copy the folders... C:\Users\admin\AppData\Roaming\npm\casperjs -> C:\Users\admin\AppData\Roaming\npm\node_modules\casperjs\bin\casperjs
add a new system variable: control panel -> system -> advanced system settings -> advanced tab -> Enviorment Variables -> click on Path -> edit -> new...
for phantomjs -> the folder where you extraced the phantomjs rar, its bin folder (where phantomjs.exe is) for casperjs -> the folder copied with the bin folder (where casperjs.exe is)
AFTER adding the system variables open cmd and test all ok (enter phantomjs, CTRL+C, enter casperjs, CTRL+C)

linux update error apt-listchanges : Depends: python3-debconf but it is not installed

apt-listchanges : Depends:  python3-debconf but it is not installed

the python3-debconf just might not be installed, so .. as stated here

sudo apt-get install python3-debconf

all that while trying to upgrade my kali with

apt-get update -y && apt-get full-upgrade

and got many more problems.

i switched to
sudo apt-get update -y && apt-get upgrade  -y
  sudo apt-get dist-upgrade -y
and things were good again

if it updates xrdp, if ur on hyper-v, just reconfigure xrdp.ini

Javascript, Prototype oriented programming

this is kind of a follow-up to my Python vs C#, a REAL answer post, which in the end, breaks programming principles and how languages (mainly C# and Python) implemented them.

But then there is this strange language, Javascript (js), which is both compiled and dynamic, and mainly, imperative, and, unlike the rest, prototype oriented. whats the connection and what that means?

Imperative vs. Declerative

lets go back to that for a sec. I am writing a program, with the object Person, with name, last name, age, address, all the usual. it runs, i sell it.

after a few days, the boss comes and says the client now wants v2, with dogs...

if its a declarative language, like C#, i must declare a Dog class somewhere and declare a connection to Person, whether its by giving it a PersonId or just setting it as a property of person.

If it was Python, which has Imperative features, i could just add for a person instance a property of a simple type, like DogId. but for a Dog class i also must declare a c…

Angular run multiple apps in 1 project, Optionality bootstrap components

most posts you'll find talk about actually managing 2 totally different apps under 1 project, and that's best described here: .

but what i really want to achieve is behavior more close to angular 1.x where you could write like 50 directives / components and put just set the ng-app attribute in your Aspx master page and it would just catch whatever is in, so in each page there were 2-10 directives and all was good.

with the angular-cli today its not native possible, but kouasda found a solution, where you test the page for the your angular tags and bootstrap them accordingly, as told in this issue and shown in this plnk.

eventually your app.module should look like this

import {BrowserModule, DOCUMENT} from '@angular/platform-browser'import {NgModule, Inject, ApplicationRef} from '@angular/core'import {AppRootOne} from './app-root-one.component'import {AppRootTwo} from './a…

c# WebRequest error An existing connection was forcibly closed by the remote host

“An error occurred while making the HTTP request to https://<API endpoint>. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.” Inner exception was “Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

this happened to me when doing some HttpWebRequests and suddenly everything stopped working.

apparently the server changed protocol to Tls1.2, and that caused all the mess. PLUS i was using .Net4 so no enum there, so here is the magic line for all you problems

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;