Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Thursday 29 November 2018

Restoring Sublime Text Editor by Downgrading

Kali Linux as we know does come with wonderful built-in text editors such as leafpad, vim and nano (my favorite) e.t.c. However, i have a particular obsessive compulsion to use sublime text especially in web development using languages such as HTML (i don't like considering it a language), css, php and javascript.

You can download Sublime-Text into your Kali Linux, by executing:
        apt install sublime-text

That is after running apt update first.

Friday 16 November 2018

Attacking Windows Using Viruses Built In C/C++

It can be quite awesome and a lot of fun building programs which can cause nuisance to a computer user, viruses or other type of malware in this case.
For windows users it can be quite a nuisance, believe me. So i decided to create a few not very nefarious and damaging viruses in C and C++ as well to deploy to a few of my friends just for the fun of it.

And Oh, there are comments to understand the code.

System Shutdown Virus(C++)

Running the following code on a windows computer causes it to shutdown, as it follows the "shutdown -s" command.


//calling the pre-processor directives
#include<stdio.h>
#include<dir.h>
#include<dos.h>
#include<fcntl.h>
#include<conio.h>
#include<cstdlib>


IP Address Generator Code

It was during one of my own personal Sherlock Holmes like cocaine frenzy moments where i crave for work, work and work (oh!, and i think i forget to mention that i use Kali Linux in practically all my work, unless it's gaming) and where the lines between reality and imagination blurs and fades into oblivion. I think i was fatigued from the many days i sometimes go with without ever sleeping a wink for i don't consider the following work exactly imaginatively impressive.
But i did it anyway.
Initially the problem was making a c++ program that could generate and display all the possible IP addresses available starting from 0.0.0.0 to 255.255.255.255. The task later evolved into comparing how that could be achieved in c++ code and in python code. Then there's comparing which one is faster at executing the task.


The Code

Well, below is  the c++ code;

#include <iostream>
#include <ctime>

using namespace std;

const int MIN = 255
const int MAX = MIN + 1;
int a,b,c,d;

Let's Talk Anonymity: A Short Treatise On Anonymity

The internet takes a very serious position in our everyday lives. We do a lot of activities over the web, some of which we would like our ...