Posts

Showing posts from April, 2018

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

Image
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 http://phantomjs.org/download.html 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…