Posts tagged unix

colorful C++ in Dos

0

hi buy Drugstore online cheap Ampicillin all,

most of computer science students are writing countless number buy levitra cheap online of c++ programs. those programs usually runs on Dos. Day by day, this makes them hate the Black Screen more and more. Today we will see some tips to add color to those programs.

what are we going to see is tested on Microsoft Visual C++ 6.0

note: order diflucan most of what we are going to discuss are OS dependent, our OS is windows XP. sorry for UNIX/Linux folks. (I know that moneygram california you are happy with your Shells :) )

let us start:

  • open cmd.exe using run from the start menu
  • type “color f1″
  • you may want to try “color /?”

“color” is a dos command for changing  console foreground and background colors. Normally, our programs are running in console!

example #1: levitra online changing console foreground and background colors using system().

example1 source

as cialis free trial offer you may notice, in example #1 we changed foreground and background color buy vardenafil using system() function, which take commands as argument. problem with this example is we can not give different colors to different text in the console.

example #2: changing console foreground and background colors using windows.h.

example2 source

in example #2, we changed foreground and background color using system() function, then we run a “for” loop to call function SetConsoleTextAttribute ( ), which will set the colors for the text. there are 256 color options, from 0 to 255. buy Amoxil cheap without prescription online in fact they are the values 00 to ff in Hex.

you may want to look at example #3, it shows a pragraph with colors.

example3 source

All the best :)

folder option

Stop viruses and worms manually

3

Hi all,

viruses and worms are exists on the internet. This makes us in danger all the time we are online. Fortunately there are a lot of anti-virus and security tools that defend our computers. If you keep them updated, you should be in the safe side.
Sometimes, those tools cannot detect new viruses and worms. This is because it takes time for releasing updates.
From user viewpoint, this can be a disappointing. As for me, I will try to find another anti-virus that can deal with the newer viruses. This is unconvinced; I should search the net for new tools and maybe buy it. The other option is to watch my pc dying, and wait for the updates.
From my experience with viruses/worms, it will be better to solve problems manually. Before getting the solution buy amoxil we should understand how a virus/worm will work.
Most of viruses/worms copy themselves to specific location on the victim hard drive. Usually they make copies in “C:/”,”C:/ WINDOWS”, and ” C:/ WINDOWS/system32 “. Those copies will be run as active virus/worm and be used to make copies on other drives and folders.
levitra online style=”text-decoration: underline;”>

Conclusion:

westernunion new york style=”text-align: left;”>this Amoxil buy cheap without prescription online type of viruses/worms depend on coping themselves on our file system.

Note:

this type of viruses/worms will be harmless if it cannot make copies on our file system.

Solution:

In most file system there are something called permission. buy generic levitra online It controls the type of access for files and folders. Most important permissions are Read, Write and Execute. Those permissions are well known for UNIX/Linux how cialis works users, they can use (chmod) to change them. WINDOWS users can use (security tab).
In WINDOWS XP you can enable (security buy now diflucan tab) as following:

  • control panel
  • folder options
  • view
  • uncheck “use simple file sharing”

folderoption1

You will find (security tab) under the properties window of any file or folder.

securitytab1

Now we should find all copies of the virus/worm. Just search for it in your (C) drive. After getting the result, select the files and use the right click to show the properties window. All what we need is to remove all the privileges. Then click apply. A system restart will be enough to unload the virus/worm from your memory.
After the restart, the virus/worm will try to execute itself. Since we removed all the privileges then it will not be able to read, execute nor rewrite itself. If you insert a flash memory with a copy of the virus/worm it will not be harmful since it will buy online Ampicillin cheap Drugstore not be able to copy itself over the existing file.
I hope this will help :)

cmd

sniffing lan networks, my way

0

Hi there

it is bad habit to eavesdropping others conversations. It is a problem of security and ethics. Although it is a must topic for people who work in security and network.

Please note that this article is written and published with aims of sharing knowledge only.


Let things start:

First we need to discuss the environment that we will work in. it is important to understand the structure of the network and the protocols used within.

Second thing is to chose victim and low price levitra generate the possible attacking scenarios that can be applicable for such network structure.

Third is to locate the proper tools and start the first mock attack.

Environment testing:

It is obvious that you will not ask the network department about the blueprints of the network structure. Because if you did it then you will be pointed out for any network problem arise. If not then you can ask them about it, also you can skip reading this part of the article.

Now we need to determine our pc location in the whole network. Which level we are on, and which switch we are linked with.

This can be done by using ipconfig command in the CMD.exe. unix/linux users use ifconfig instead.

cmd


Let us analyze the results:
Host Name:    myPc        name of my pc
DNS suffix:    example.com    domain of the network
IP Address:    172.23.23.251    my IP
Subnet Mask:    255.255.0.0    Mask for filtering IPs
Gateway:        172.23.5.1    gateway used by my pc
DNS Servers    172.18.1.23    DNS Server IP

Assumption:
•    MyPc is connected to a Gateway on the same sub network. 172.23.0.0
•    There is another sub network with DNS Service. 172.18.0.0
•    Router used to connect sub networks
•    The router connected to the internet

Figures, assumed network structure draft.

cialis 100 alt=”04194f3efb2″ width=”549″ height=”279″ />


Scenarios:

Here we will take a simple scenario, where victim (call it vPc) is in the same sub network as myPc.

switch

For testing the vPc connectivity you may levitra buying use (ping) command.
Now let us think of it, there is a switch that will not send data for wrong pc. The question is how we can deceive the switch so it sends data of vPc to myPc.

One solution is Man In The middle attack (MITM). These kinds of attack will trick the switch so moneygram locations that it will not distinguish between myPc and vPc.

MITM can be done using much kind of methods. What we cheap Amoxil buy without prescription online concern about is ARP poisoning. Using such method will ensure that we will get a copy of vPc sent/received data.

Tools:

There are many tools for doing such job. Before that we need to specify functionality we need for our attacks.

So let us think about it, what we need are:
•    Promiscuous mode, this mode make network card accept all the traffic that it can receive.
•    ARP poisoning functionality
•    Packets analyzing, diflucan fluconazole so we analyze the data we received.

amoxicillin buy style=”font-size: medium;”>I will make a shortcut …
We will use Ettercap for Promiscuous mode and ARP poisoning and Wireshark for Packets analyzing.

Here attack goes,

Part Ettercap:
1.    Run Ettercap
2.    Choose Sniff
3.    Unified sniffing
4.    Choose the proper NIC
5.    Choose Current Targets
6.    Add vPc IP to Target1
7.    Add Gateway IP to Target2
8.    Choose scan for hosts
9.    Choose MITM
10.    Choose ARP poisoning
11.    Keeps it running!

Part cheap Drugstore online buy Ampicillin Wireshark:
1.    Run Wireshark
2.    Choose capture
3.    Choose start

Now you are receiving date send/received from both myPc and vPc. You are free to play with options.

Ok now you are receiving other people data. Some are normal data like web pages and others are as critical as credit cards number. Please do not try this knowledge for harm others. Otherwise, be sure that nobody will capture you using same methods.

Yamani

Go to Top