Globbing pattern for your shell commands

Nov 9, 2014 4:59 PM

             __    __                      
___________ _/  |__/  |_  ___________  ____ 
\____ \__  \\   __\   __\/ __ \_  __ \/    \
|  |_> > __ \|  |  |  | \  ___/|  | \/   |  \
|   __(____  /__|  |__|  \___  >__|  |___|  /
|__|       \/                \/           \/

On the most unix system, command line is heart of operating system. We can control everything in an operating system using command line. Normaly it's called shell, there were some application build in from kernel to do this as an interface from a user to a kernel. For example, sh, bash, csh, ksh, tcsh, etc. It's a command line interface (CLI) beside favorited most computer user is Graphical User Interface (GUI).

It's command line world. You can customize your command line skill to use a pattern. I will describe some standard pattern bellow :



Linux shell scripting for mysql database backup over rsync connection

Nov 8, 2014 9:50 PM

                                                                                
 ,d88b.    ,                                                        ,d88b.    , 
'    `Y88P'  `Yb    dP' .d888b.  .dP""Yb  `Yb d88b d88b  .dP'  dP' '    `Y88P'  
 ,d88b.    ,   Yb  dP   8'   `Yb       Yb  88P   8Y   8b 88    88   ,d88b.    , 
'    `Y88P'     YbdP    Yb.   88       dP  88    8P   88 Y8   .88  '    `Y88P'  
                .8P         .dP  `YbwwdP  .8P  bdP  bdP  `Y88P'88               
              dP'  b      .dP'                                 88               
              Y.  ,P    .dP'                                   88               

               `""'                                            Y8.              
Backup database is a important task for system administrator. Database files backup are helpfull when there has data/file corruption, damage, etc. Backing up database is a task that must to do. Mysqldump is a popular tool to backup  databases in mysql. I make a bash script to backup mysql databases using mysqldump and rsync. Rsync is usefull tool to send file across network in fast transfer.

Make Own Mysql Query

Jun 12, 2012 2:08 PM

 ___ ___  __ __  _____  ___   _         __ 
|   T   T|  T  T/ ___/ /   \ | T       /  ]
| _   _ ||  |  (   \_ Y     Y| |      /  / 
|  \_/  ||  ~  |\__  T|  Q  || l___  /  /  
|   |   |l___, |/  \ ||     ||     T/   \_ 
|   |   ||     !\    |l     ||     |\     |
l___j___jl____/  \___j \__,_jl_____j \____j
                                           



%-----------------------------------------------------------------%
| Do you like C language programming ?                            |
| With a simply mathematical method, row and coloum count so easy |
| to print out database fields !                                  |
| >> Modified at 26 October 2013                            |
%-----------------------------------------------------------------%

Mysql query using C programming, here are the output sample :

wardi@darkstar:~/programming/c$ ./myquery 
query> show tables;
+------------------+
| Tables_in_smsd   |
+------------------+
| daemons          |
| debug_log        |
| gammu            |
| guided_sms       |

| inbox            |
| inbox_view       |
| outbox           |
| outbox_multipart |
| pbk              |
| pbk_groups       |
| phones           |
| sentitems        |
| sentitems_view   |
+------------------+

Writing Shellcode For FUN

Mar 22, 2012 10:54 PM

|=----------------------------------------------------------------------=|
|=-------------------=[ Writing Shellcode For FUN ]=--------------------=|
|=----------------------------------------------------------------------=|
|=---------------=[ By War49, line.console49@gmail.com ]=---------------=|
|=----------------------------------------------------------------------=|
|=------------------------=[  April 22, 2012  ]=------------------------=|
|=----------------------------------------------------------------------=|
                                                          
                      
            h)              l)L  l)L                       d)                 
            h)               l)   l)                       d)                 
     s)SSSS h)HHHH  e)EEEEE  l)   l)   c)CCCC  o)OOO   d)DDDD e)EEEEE  r)RRR  
    s)SSSS  h)   HH e)EEEE   l)   l)  c)      o)   OO d)   DD e)EEEE  r)   RR 
         s) h)   HH e)       l)   l)  c)      o)   OO d)   DD e)      r)      
    s)SSSS  h)   HH  e)EEEE l)LL l)LL  c)CCCC  o)OOO   d)DDDD  e)EEEE r)      
                                                                                                

[+]---[ 1. Description

What is the shellcode? Shellcode is a simply code written in assembly that could be generated into machine code and could be injected into the stack memory. For this requirement, you must have programming skill in assembly and C language, and able to operate debugging and disassembling tools. Understand the memory layout and how does variables and code were map in memory are also important beside having skill. Shellcode is very important thing in exploitation process and I think it's a difficult task. In article I am not describe till exploitation process, exploitation will explain in the sparate article. In this page only describe about writing simple shellcode and execute to check that it would take effect.


Howto Split a String in shell scripting and Get IP Address string from Shell

Feb 10, 2012 6:20 AM

Sometimes, programming in shell scripting needs input ip address from stdin or variables. By default, ip address can be acquired by ifconfig command. This simple tutorial will show you howto cut output string from shell to get piece of string that you need. Login with root or sudo from your user account then run this ifconfig command.

root@war49:/home/war49# ifconfig eth0
eth0 Link encap:Ethernet HWaddr a4:ba:db:d8:05:97
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:47

Article list :