Dark World Dimension

Dark World Dimension

From the whole other world to earthlings there, The gate of our universe will lay here!

Dark-World ||

  • Ready
  • Responsive
  • Fast Loading
  • Amazing!

Hot~af (fire)

Post Top Ad

LightBlog

Post Top Ad

Your Ad Spot

Wednesday, August 9, 2017

Python Dark Programming - First Hello World Program

August 09, 2017 0
Remember, you should have spent a good amount of time in Exercise 0, learning how to install
a text editor, run the text editor, run the Terminal, and work with both of them. If you haven’t
done that, then do not go on. You will not have a good time. This is the only time I’ll start an
exercise with a warning that you should not skip or get ahead of yourself.
Type the following text into a single fi le named ex1.py. This is important, as Python works best
with files ending in .py.
ex1.py
  1. print "Hello World!"
  1. print "Hello Again"
  1. print "I like typing this."
  1. print "This is fun."
  1. print 'Yay! Printing.'
  1. print "I'd much rather you 'not'."
  1. print 'I "said" do not touch this.'

If you are on Mac OSX, then this is what your text editor might look like if you use TextWrangler:




















If you are on Windows using Notepad++, then this is what it would look like:
















Don’t worry if your editor doesn’t look exactly the same; the key points are as follows:
1. Notice I did not type the line numbers on the left. Those are printed in the tutorial so I can
talk about specific lines by saying, “See line 5 . . .” You do not type those into Python scripts.
2. Notice I have the print at the beginning of the line and how it looks exactly the same
as what I have above. Exactly means exactly, not kind of sort of the same. Every single
character has to match for it to work. But the colors are all different. Color doesn’t mat-
ter; only the characters you type.
Then in Terminal, run the fi le by typing:
python ex1.py
If you did it right, then you should see the same output I have below. If not, you have done some-
thing wrong. No, the computer is not wrong.


What You Should See

On Max OSX in the Terminal, you should see this:
























On Windows in PowerShell, you should see this:

You may see different names, the name of your computer or other things, before the python ex1.py,
but the important part is that you type the command and see the output is the same as mine.
If you have an error, it will look like this:
$ python ex/ex1.py
File "ex/ex1.py", line 3
print "I like typing this.
^
SyntaxError: EOL while scanning string literal
It’s important that you can read these, since you will be making many of these mistakes. Even I
make many of these mistakes. Let’s look at this line by line.
1. Here we ran our command in the Terminal to run the ex1.py script.
2. Python then tells us that the fi le ex1.py has an error on line 3.
3. It then prints this line for us.
4. Then it puts a ^ (caret) character to point at where the problem is. Notice the missing "
(double- quote) character?
5. Finally, it prints out a SyntaxError and tells us something about what might be the error.
Usually these are very cryptic, but if you copy that text into a search engine, you will fi nd
someone else who’s had that error and you can probably fi gure out how to fi x it.
WARNING!
If you are from another country and you get errors about ASCII encodings,
then put this at the top of your Python scripts:
# - *- coding: utf- 8 - *-
It will fix them so that you can use Unicode UTF- 8 in your scripts without a problem.

Study Drills

Each exercise also contains Study Drills. The Study Drills contain things you should try to do. If you
can’t, skip it and come back later.
For this exercise, try these things:
1. Make your script print another line.
2. Make your script print only one of the lines.
3. Put a “#” (octothorpe) character at the beginning of a line. What did it do? Try to find out what this character does.

From now on, I won’t explain how each exercise works unless an exercise is different.
NOTE:
An “octothorpe” is also called a “pound,” “hash,” “mesh,” or any number of
names. Pick the one that makes you chill out.

Common Student Questions

These are actual questions by real students in the comments section of the tutorial when it was
online. You may run into some of these, so I’ve collected and answered them for you.

Can I use IDLE?

No, you should use Terminal on OSX and PowerShell on Windows, just like I have here. If you don’t
know how to use those, then you can go read the Command Line Crash Course in the appendix.

How do you get colors in your editor?

Save your file first as a .py file, such as ex1.py. Then you’ll have color when you type.

I get SyntaxError: invalid syntax when I run ex1.py.

You are probably trying to run Python, then trying to type Python again. Close your Terminal, start
it again, and right away type only python ex1.py.

I get can't open file 'ex1.py': [Errno 2] No such file or directory.

You need to be in the same directory as the file you created. Make sure you use the cd command to
go there fi rst. For example, if you saved your fi le in lpthw/ex1.py, then you would do cd lpthw/
before trying to run python ex1.py. If you don’t know what any of that means, then go through
the Command Line Crash Course (CLI- CC) mentioned in the fi rst question.

How do I get my country’s language characters into my file?

Make sure you type this at the top of your file: # - *- coding: utf- 8 - *- .

My file doesn’t run; I just get the prompt back with no output.

You most likely took the previous code literally and thought that print "Hello World!" meant
to literally print just "Hello World!" into the fi le, without the print. Your fi le has to be exactly
like mine in the previous code and all the screenshots; I have print "Hello World!" and print
before every line. Make sure your code is like mine and it should work.
Read More

Python Dark Programming - Introduction

August 09, 2017 0

In this series with tutorials we will learn how to programming with python in both Windows, Mac and also linux

This tutorial will be for low level beginners that have no even idea about programming then you can improve your skills by yourself to be the most smart programmer ever


before getting started

Do Not Copy- Paste

You must type each of these exercises in, manually. If you copy and paste, you might as well just
not even do them. The point of these exercises is to train your hands, your brain, and your mind in how to read, write, and see code. If you copy- paste, you are cheating yourself out of the effectiveness of the lessons.

A Warning for the Smarties

Sometimes people who already know a programming language will read this tutorials and feel I’m
insulting them. There is nothing in this tutorials that is intended to be interpreted as condescending,
insulting, or belittling. I simply know more about programming than my intended readers. If you
think you are smarter than me, then you will feel talked down to and there’s nothing I can do
about that because you are not my intended reader.

The Setup

This exercise has no code. It is simply the exercise you complete to get your computer to run
Python. You should follow these instructions as exactly as possible. For example, Mac OSX
computers already have Python 2, so do not install Python 3 (or any Python).
WARNING!
If you do not know how to use PowerShell on Windows or the Terminal
on OSX or “Bash” on Linux, then you need to go learn that first.

 Mac OSX

To complete this exercise, complete the following tasks:
1. Go to http://www.barebones.com/products/textwrangler with your browser, get the
TextWrangler text editor, and install it.
2. Put TextWrangler (your editor) in your dock so you can reach it easily.
3. Find your Terminal program. Search for it. You will fi nd it.
4. Put your Terminal in your dock as well.
5. Run your Terminal program. It won’t look like much.
6. In your Terminal program, run python. You run things in Terminal by just typing the
name and hitting RETURN.
7. Hit CTRL- Z (^Z), Enter, and get out of python.
8. You should be back at a prompt similar to what you had before you typed python. If not,
fi nd out why.
9. Learn how to make a directory in the Terminal.
10. Learn how to change into a directory in the Terminal.
11. Use your editor to create a file in this directory. You will make the fi le, “Save” or
“Save As . . . ,” and pick this directory.
12. Go back to Terminal using just the keyboard to switch windows.
13. Back in Terminal, see if you can list the directory to see your newly created file.

OSX: What You Should See

Here’s me doing this on my computer in Terminal. Your computer would be different, so see if you
can figure out all the differences between what I did and what you should do.
Last login: Sat Apr 24 00:56:54 on ttys001
~ $ python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
~ $ mkdir mystuff
~ $ cd mystuff
mystuff $ ls
# ... Use TextWrangler here to edit test.txt....
mystuff $ ls
test.txt
mystuff $

Windows

1. Go to http://notepad-plus-plus.org with your browser, get the Notepad++ text editor,
and install it. You do not need to be the administrator to do this.
2. Make sure you can get to Notepad++ easily by putting it on your desktop and/or in
Quick Launch. Both options are available during setup.
3. Run PowerShell from the Start menu. Search for it and you can just hit Enter to run it.
4. Make a shortcut to it on your desktop and/or Quick Launch for your convenience.
5. Run your Terminal program. It won’t look like much.
6. In your Terminal program, run python. You run things in Terminal by just typing the
name and hitting Enter.
a. If you run python and it’s not there (python is not recognized.), install it from
http://python.org/download.
b. Make sure you install Python 2, not Python 3.
c. You may be better off with ActiveState Python, especially if you do not have adminis-
trative rights.
d. If after you install it python still isn’t recognized, then in PowerShell enter this:
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27", "User")
e. Close PowerShell and then start it again to make sure Python now runs. If it doesn’t,
restart may be required.
7. Type quit() and hit Enter to exit python.
8. You should be back at a prompt similar to what you had before you typed python. If not,
find out why.
9. Learn how to make a directory in the Terminal.
10. Learn how to change into a directory in the Terminal.
11. Use your editor to create a fi le in this directory. Make the fi le, Save or Save As... and
pick this directory.
12. Go back to Terminal using just the keyboard to switch windows.
13. Back in Terminal, see if you can list the directory to see your newly created file.
WARNING!
If you missed it, sometimes you install Python on Windows and it doesn’t
configure the path correctly. Make sure you enter [Environment]::SetEnvironment
Variable("Path", "$env:Path;C:\Python27", "User") in PowerShell to
configure it correctly. You also have to either restart PowerShell or restart your whole
computer to get it to really be fixed.

 Windows: What You Should See


> python
ActivePython 2.6.5.12 (ActiveState Software Inc.) based on
Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^Z
> mkdir mystuff
> cd mystuff
... Here you would use Notepad++ to make test.txt in mystuff ...
>
<bunch of unimportant errors if you installed it as non- admin - ignore them - hit Enter>
> dir
Volume in drive C is
Volume Serial Number is 085C- 7E02
Directory of C:\Documents and Settings\you\mystuff
04.05.2010   23:32          <DIR>             .
04.05.2010   23:32          <DIR>             ..
04.05.2010   23:32                              6 test.txt
1 File(s)                       6 bytes
2 Dir(s) 14 804 623 360 bytes free
>
You will probably see a very different prompt, Python information, and other stuff, but this is the
general idea.

Linux

Linux is a varied operating system with a bunch of different ways to install software. I’m assuming
if you are running Linux then you know how to install packages, so here are your instructions:
1. Use your Linux package manager and install the gedit text editor.
2. Make sure you can get to gedit easily by putting it in your window manager’s menu.
a. Run gedit so we can fi x some stupid defaults it has.
b. Open Preferences and select the Editor tab.
c. Change Tab width: to 4.
d. Select (make sure a check mark is in) Insert spaces instead of tabs.
e. Turn on Automatic indentation as well.
f. Open the View tab and turn on Display line numbers.
3. Find your Terminal program. It could be called GNOME Terminal, Konsole, or xterm.
4. Put your Terminal in your dock as well.
5. Run your Terminal program. It won’t look like much.
6. In your Terminal program, run Python. You run things in Terminal by just typing the
name and hitting Enter.
a. If you run Python and it’s not there, install it. Make sure you install Python 2, not
Python 3.
7. Type quit() and hit Enter to exit Python.
8. You should be back at a prompt similar to what you had before you typed python. If not,
find out why.
9. Learn how to make a directory in the Terminal.
10. Learn how to change into a directory in the Terminal.
11. Use your editor to create a file in this directory. Typically you will make the file, Save or
Save As..., and pick this directory.
12. Go back to Terminal using just the keyboard to switch windows. Look it up if you can’t
figure it out.
13. Back in Terminal, see if you can list the directory to see your newly created file.

Linux: What You Should See


$ python
Python 2.6.5 (r265:79063, Apr 1 2010, 05:28:39)
[GCC 4.4.3 20100316 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ mkdir mystuff
$ cd mystuff
# ... Use gedit here to edit test.txt ...
$ ls
test.txt
$
You will probably see a very different prompt, Python information, and other stuff, but this is the
general idea.

Warnings for Beginners

You are done with this exercise. This exercise might be hard for you, depending on your familiarity
with your computer. If it is diffi cult, take the time to read and study and get through it, because
until you can do these very basic things, you will fi nd it diffi cult to get much programming done.
If a programmer tells you to use vim or emacs, just say “no.” These editors are for when you are a
better programmer. All you need right now is an editor that lets you put text into a fi le. We will
use gedit, TextWrangler, or Notepad++ (from now on called “the text editor” or “a text editor”)
because it is simple and the same on all computers. Professional programmers use these text edi-
tors, so it’s good enough for you starting out.
A programmer may try to get you to install Python 3 and learn that. Say, “When all the Python
code on your computer is Python 3, then I’ll try to learn it.” That should keep him or her busy for
about 10 years.
A programmer will eventually tell you to use Mac OSX or Linux. If the programmer likes fonts and
typography, he’ll tell you to get a Mac OSX computer. If he likes control and has a huge beard,
he’ll tell you to install Linux. Again, use whatever computer you have right now that works. All
you need is an editor, a Terminal, and Python.

Finally, the purpose of this setup is so you can do four things very reliably while you work on the exercises:
1. Write exercises using your text editor, gedit on Linux, TextWrangler on OSX, or Notepad++
on Windows.
2. Run the exercises you wrote.
3. Fix them when they are broken.
4. Repeat.
Anything else will only confuse you, so stick to the plan.


Continue Next Tutorial

Read More

Tuesday, August 8, 2017

How to Configure and Completely Understand Kali Linux

August 08, 2017 0
(This post will be always in up-to-date)

Be sure to read this first: Install Kali linux on usb pen drive

In this tutorial we will *sighs* you know..

First Stage! Terminal Commands

Now Open your terminal
Type
:~# help  "Getting help from our system"
Does you get it? i think you just got a headache for now!

Don't worry Its just a shell commands that use for programming but we're not here to learn programming
By the way i did that cause this article will be linked to another one that will be about programming if you interested will improve your kali skills
But hey wait you can't be a hacker without learn programming, its not something that you think to do it later when you have to!

Now real tutorial start now *tutorial starts at this line don't thank me*

If you're new to the console method then you should know that

The letters and numbers you enter is bytes and those bytes have codes that used in programming and expressions means that "K" is totally different from "k" and "A" is totally different from "a" cause all have different unique code names they called each other with exactly the same as numbers " 0, 1, 2, 3 etc..." and our systems translates it from codes to output of numbers and letters
anyway what you should learn from that?
Be careful each letter and number you typing in your command
cause simply
if(command = true)
{success}
else
{failed}
Which means simple little mistake or upper/lower case in your command is a failed not near or far is just a failed!
1.0

Clear buffer

:~# clear "clears the buffer of the console with kind of excepting the last command buffer"
 which will be good if you want to view some info from the last buffer
:~# tput reset "Clears all current console buffer"
 which will be good if you want to clear all your penetration testing buffer
:~# reset "Resets the console buffer to the start point"
 same as first open but you can resume background processes you was doing
1.1

Pause/Stop/Resume

Press Ctrl + Z "Suspend the process in the background"
 temporally Suspend the last process you made in your terminal in the background until you close it
:~# fg "Resume the last suspended process in the exactly terminal"
 Resume the last suspended operation in the terminal that means if you closed the terminal
 you lost your suspended operation
Press Ctrl + C "Ends the process of your terminal operation"
 End the process of your current console operation that can't be resume again
1.2

Explore between system



:~# ls "View all folders and files in the current directory" (to get help type :~# ls --help)
 If you want to see some files fast in this directory and see all properties of everything faster
 will benefit when you installing or extracting packages or files or
:~# cd <directory name> "Jump in the selected directory/file in the terminal"
 To moving around the system and will be used frequently
:~# cd .. "Moves you up or back one directory"
 If you created a folder named test in your Desktop and opened the terminal there in that test directory  you can simply go back to the Desktop by this command
:~# cd "Returns you to the start point" (to get help type :~# cd --help)
 which means you can't resume or continue the last operation you was on
1.3

Extract Files

:~# unrar e <rar file> "Extract .rar files in the current directory"
 Extract Here the archive you selected by name following with .rar
 that you can easily copy the full name with command ls
:~# unzip <zip file> "Extract .zip files in the current directory"
 Direct Extract to the current directory from the .zip selected file location
:~# tar -xz<file>"Extract .gz/tgz files in the current directory"
 Direct Extract to the current directory from the selected file location
:~# tar -xf <file>"Extract all other compressed files in the current directory"
 Direct Extract to the current directory from the selected file location
1.4

dpkg (install/uninstall packages)

Note: you can only use with .deb files and those files that you can download from internet
like google chrome, discord etc plus that dpkg represents package.
:~# dpkg -i <.deb file> "Install .deb packages to your system" (to get help type :~# dpkg --help)
 Installing packages.
:~# dpkg -l "List all your installed packages"
 View all your installed packages by name,version,architecture,description etc.
:~# dpkg --remove <package name> "Remove the package you selected by name"
 Uninstall the package you choose from your system
1.4

dpkg (install/uninstall packages)

Note: you can only use with .deb files and those files that you can download from internet
like google chrome, discord etc plus that dpkg represents package.
:~# dpkg -i <.deb file> "Install .deb packages to your system" (to get help type :~# dpkg --help)
 Installing packages.
:~# dpkg -l "List all your installed packages"
 View all your installed packages by name,version,architecture,description etc.
:~# dpkg --remove <package name> "Remove the package you selected by name"
 Uninstall the package you choose from your system

Tutorial Progress: 16.8%
Read More

Sunday, August 6, 2017

Double system processing speed for windows (No risk)

August 06, 2017 0

Hi all!


Today we will learn how to configure our Windows OS
to double its speed and processing without any risk to our PC

First Stage!

 Click on Start Windows Icon and type run in search box select Run then press Enter

|OR|
Press "Windows" Icon and "R" letter in your keyboard

Then type "msconfig" in this TextBox

Click Ok or Press Enter
if that doesn't work you have to Open cmd
and type msconfig then press Enter

Stage two!

This Window will appear in your screen
Switch to Boot tap
Click on "Advanced Options"
Check on Number of processors:
and choose the highest value
Example: I have 1, 2, 3, 4 .. so i selected 4

Press Ok

Now enter Startup Tab and Uncheck all using Disable all button
Then if you have Anti-virus like Avast, Avira, kaspersky , malware bytes..
Check it in the list and other programs you only wants to start when the windows start

NOT! the programs you want to use, Just Check Anti-virus and sound or gpu drivers  and leave the rest.

Press Apply Button then Ok and restart your system

After restart now that's means you use your full system processing performance , Have Fun!

Read More

Saturday, August 5, 2017

Install Kali linux on usb pen drive

August 05, 2017 0

Welcome humans!

My first show today will how to install kali linux on your pendrive
for *Advanced Penetration Testing*
Yup we will have so much fun next tutorials with this Image!

but for now i have to explain as fast how to do that from zero, don't worry i won't be boring like others, Put in your mind to don't skip anything here cause all upcoming info will be helpful 


Requirements:

Pendrive with 6GB or more.
Just a good Graphic card not the best or old.

First! Downloads {Just Click its a Direct Links}~


Kali Linux 2017.1 (64 bit) |Or| Kali Linux 2017.1 (32 bit)
MiniTool Partition Wizard Free Edition 10.2
Universal USB Installer 1.9.7.8


Second! Preparing to burn Kali Iso Image on your pendrive~


I prefer to put the kali image in a good place where i can found it again if a problem or technically mistake happened while you using your kali system its up to you!

Open MiniTool Partition Wizard Setup
Install it normally like any other software or program ~ Wait! don't tell me you need to know how :O
By the way we're not here to wasting time

Plug-in your pen drive ~ (if there's a problem in your "PC" like doesn't show it, i will post it later how fix)

Run Universal-USB-Installer-1.9.7.8.exe as Adminstrator


1. Choose Kali linux from that Combo Box in Step 1
2. Select your Kali Iso image from this Text Box in the middle (in this pic, its my location) in Step 2 
3. Select your pen-drive that you plugged in at the last Combo Box in Step 3
4. Check "Fat32 Format Drive  (Erases Content)" box and Click Create
All will be like this image except of course the locations or maybe 0.5/50%, what do you think? nothing impossible!
will pop-up an Warning Message but just ignoring it if you did that already like me and don't make
like select wrong image or select wrong drive partition not your pen-drive thay may mess up your system
now it will take just minutes to finish the unzipping into your pen-drive and burn the image.



Third! Make an pen-drive partition to save your data

Open the installed software "MiniTool Partition Wizard" then click >> Launch Application



After opening our software it will show up this window

1. Choose Your Pen-drive that 0.75/1 will be specifically on Desk 2 if you have only 1 Disk in your PC
2. then click Move/Resize Partition in the top left of the window
Whatever your partition size don't be so generous or so stingy
(this drive will be just for boot not for performance or more capacity if you want more performance then you need a good GPU and if more capacity then you need a larger pen-drive) get it?
3. Just type 3-5 GB in the Partition Size
4. Click Ok
Then an Unallocated space will show up like this
5. Click on this Unallocated Space and choose Create Partition on the top left
an Warning message will pop up saying that it can't be using in Windows or even boot by the way just ignore it cause that's exactly what we want! Click Yes
Now Copy my settings and leave the rest
Partition Labelpersistence
Create As: Primary
File System: Ext4 (That what linux systems accept to be partitions and no need for drive letters)
Cluster Size: Default
All settings will be finally like that

Click Ok

Final Step is to close the pen drive explorer if opened then Click Apply at the top left then Yes






Now it will take much time to finish depends on your processor

Fourth! Configure Kali Linux to our persistence partition

after finished the third stage now don't remove your pen drive from your Pc
but just restart and spam F12 every 0.5s

(of course it has a specific time to press but i really don't know what's your pc model so just spamming when you see your screen showing anything in front of you)

Then Choose USB Storage Device ~ maybe it named something different in your PC model but it contains USB in the name (if doesn't show up just restart your pc and try different socket)
I think we entered kali linux boot menu now

1. Choose Live USB Persistence
Wait for kali to finish loading from usb
then Create a new folder through right click on desktop  and choose Create New Folder
why we created this?
answer: to test does that folder will stay after finishing this tutorial or not
Now
2. Click Applications at the top left then find Terminal and choose it

3. Type this Commands

mkdir -p /mnt/UUI

(Making directory called UUI in location /mnt/)

mount /dev/sdb2 /mnt/UUI

(Attaching the persistence partition that called sdb2 that we made into that directory /mnt/UUI)

Fast Q&A
How you knew that sdb2 is our persistence partition that we created?
answer: cause sdb is for usb drivers and our driver has two partition (first 1 has kali image to boot and second one is empty for persistence) so it became sdb2

echo "/ union" >> /mnt/UUI/persistence.conf

(Writes "/ union" that means all directories and components exist into >> /mnt/UUI/persistence.conf that means save all there)

umount /dev/sdb2 && reboot

(detaches our partition and reboot the system)

Now After rebooting you can see your folder is stayed up without any problem!

if any problem happened try to add sudo before each command (means run the command as root user) again and make sure that your persistence partition is exist in the MiniTool software

Note

Everytime you boot your kali linux it saves the data into your pen drive already but as temporary memory and like formatting your drive each time you boot so we need to move this memory directory into other partition where it can be secure without booting on it

any problem happened just lemme know with some details 

Thanks for follow my instructions as my first show!
Read More

Post Top Ad

Your Ad Spot