<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7156471096509150900</id><updated>2011-11-06T17:33:11.748-08:00</updated><title type='text'>Tiberiu Bazavan</title><subtitle type='html'>Tiberiu Bazavan - Tiberiu Adrian Bazavan - Adrian Bazavan - Bazavan Tiberiu Adrian - Bazavan Tiberiu - Bazavan Adrian</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tiberiubazavan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tiberiubazavan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>company</name><uri>http://www.blogger.com/profile/13235370995767359225</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7156471096509150900.post-491948967582250958</id><published>2008-04-20T02:39:00.001-07:00</published><updated>2008-04-20T02:39:59.443-07:00</updated><title type='text'></title><content type='html'>mysql restart si stop&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/etc/init.d/mysqld stop&lt;br /&gt;/etc/init.d/mysqld start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7156471096509150900-491948967582250958?l=tiberiubazavan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/491948967582250958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/491948967582250958'/><link rel='alternate' type='text/html' href='http://tiberiubazavan.blogspot.com/2008/04/mysql-restart-si-stop-etcinit.html' title=''/><author><name>company</name><uri>http://www.blogger.com/profile/13235370995767359225</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7156471096509150900.post-6018485574143413603</id><published>2008-02-25T22:37:00.000-08:00</published><updated>2008-02-25T22:41:07.077-08:00</updated><title type='text'>Deny SSH attemnt to hack</title><content type='html'>you need to install denyhosts&lt;br /&gt;&lt;br /&gt;yum install denyhosts&lt;br /&gt;&lt;br /&gt;http://denyhosts.sourceforge.net/faq.html#1_1&lt;br /&gt;&lt;br /&gt;When run for the first time, DenyHosts will create a work directory.  The work directory will ultimately  store the data collected and the files are in a human readable format, for each editing, if necessary.   &lt;p&gt;  DenyHosts then processes the sshd server log (typically, this is /var/log/secure, /var/log/auth.log, etc)  and determines which hosts have unsuccessfully attempted to gain access to the ssh server.  Additionally,  it notes the user and whether or not that user is &lt;i&gt;root&lt;/i&gt;, otherwise &lt;i&gt;valid&lt;/i&gt; (eg. has a system  account) or &lt;i&gt;invalid&lt;/i&gt; (eg. does not have a system account).  &lt;/p&gt;&lt;p&gt;  When DenyHosts determines that a given host has attempted to login using a non-existent user account a  configurable number of attempts (this is known as the &lt;i&gt;DENY_THRESHOLD_INVALID&lt;/i&gt;), DenyHosts will add that host  to the /etc/hosts.deny file.  This will prevent that host from contacting your sshd server again. &lt;/p&gt;&lt;p&gt;  The &lt;i&gt;DENY_THRESHOLD_ROOT&lt;/i&gt; configuration value specifies the maximum acceptable times that the  &lt;i&gt;root&lt;/i&gt; user account can fail to login before being blocked.  Typically this value is set lower than  &lt;i&gt;DENY_THRESHOLD_INVALID&lt;/i&gt; such that root level attackers are blocked earlier than other accounts.  It is also a  good practice to &lt;a href="http://denyhosts.sourceforge.net/faq.html#security"&gt;disable root logins&lt;/a&gt; within the sshd.conf file in conjunction with this setting. By doing so, no user can login to root@your-server and their host will be blocked from attacking other user accounts when the &lt;i&gt;DENY_THRESHOLD_ROOT&lt;/i&gt; is reached.  &lt;/p&gt;&lt;p&gt;   The &lt;i&gt;DENY_THRESHOLD_VALID&lt;/i&gt; configuration value specifies the maximum acceptable times a valid user  (ie. a user that exists in /etc/passwd) can fail to login before being blocked.  This parameter  can be helpful for those with "fat fingers".  Typically this value is set higher than  &lt;i&gt;DENY_THRESHOLD_INVALID&lt;/i&gt;.&lt;/p&gt;  Also, DenyHosts will note any successful logins that occurred by a host that has exceeded the &lt;i&gt;deny_threshold&lt;/i&gt;.   These are known as &lt;i&gt;suspicious logins&lt;/i&gt; and should be investigated further by the system admin.   &lt;a href="http://denyhosts.sourceforge.net/faq.html#top"&gt;&lt;br /&gt;&lt;p align="right"&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="right"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align="right"&gt;http://denyhosts.sourceforge.net/faq.html#security&lt;/p&gt;&lt;br /&gt;&lt;p align="right"&gt;&lt;br /&gt;&lt;/p&gt;&lt;/a&gt;&lt;h2&gt;What steps can I take to make sshd more secure?&lt;/h2&gt;&lt;br /&gt;OpenSSH has many settings that can be adjusted in order to increase security.  You may wish to refer to  OpenSSH security websites or to the many books on the subject. However, here are some things that you may  wish to consider based on my experience:&lt;p&gt;  &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Disable logins to &lt;i&gt;root&lt;/i&gt;.  This can be accomplished by setting the &lt;i&gt;PermitRootLogin&lt;/i&gt; setting  in the sshd_config file (typically, /etc/ssh/sshd_config).&lt;br /&gt;&lt;i&gt;PermitRootLogin no&lt;/i&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Disable password logins entirely by editing the &lt;i&gt;PasswordAuthentication&lt;/i&gt; setting.  By doing so,  each user with access to the server will need to create ssh keys (which is beyond the scope of this  document).&lt;br /&gt;&lt;i&gt;PasswordAuthentication no&lt;/i&gt; &lt;p&gt;   &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Run sshd on a different port.  By default, sshd runs on port 22.  Most sshd hackers will only attack  port 22 so if you run sshd on a different port, the chances of being compromised are reduced dramatically.   However, by running sshd on an alternate port requires each user to be aware of this (so if your server is  accessed by many user accounts then this solution might not be feasible).  To run sshd on an alternate port  simply edit the sshd_config and set the &lt;i&gt;Port&lt;/i&gt; setting appropriately:&lt;br /&gt;&lt;i&gt;Port 9922&lt;/i&gt;&lt;p&gt;  To access &lt;i&gt;yourserver&lt;/i&gt; running on port 9922 you would connect using the &lt;i&gt;-p&lt;/i&gt; command line  option:&lt;br /&gt;$ &lt;i&gt;ssh -p 9922 yourserver&lt;/i&gt; &lt;/p&gt;&lt;p&gt; Alternatively, you can edit your &lt;i&gt;$HOME/.ssh/config&lt;/i&gt; file &lt;i&gt;or&lt;/i&gt; your site-wide  &lt;i&gt;/etc/ssh/ssh_config&lt;/i&gt; file and add an entry similar to:&lt;/p&gt;&lt;p&gt;  &lt;table border="0"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;Host yourserver&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align="right"&gt;Port 9922&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Install DenyHosts!  &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7156471096509150900-6018485574143413603?l=tiberiubazavan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/6018485574143413603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/6018485574143413603'/><link rel='alternate' type='text/html' href='http://tiberiubazavan.blogspot.com/2008/02/deny-ssh-attemnt-to-hack.html' title='Deny SSH attemnt to hack'/><author><name>company</name><uri>http://www.blogger.com/profile/13235370995767359225</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7156471096509150900.post-5792643894731866168</id><published>2008-02-25T21:16:00.000-08:00</published><updated>2008-02-25T21:28:13.127-08:00</updated><title type='text'>Server Hacked</title><content type='html'>I got my server hacked.&lt;br /&gt;&lt;br /&gt;Usefull Linux Commands:&lt;br /&gt;&lt;br /&gt;Find a file on a server:&lt;br /&gt;Examples               &lt;blockquote&gt;                 &lt;p&gt;&lt;b&gt;find -name 'mypage.htm'&lt;/b&gt;&lt;/p&gt;                 &lt;p&gt;In the above command the system would search for                 any file named mypage.htm in the current directory and any                 subdirectory.&lt;/p&gt;                 &lt;p&gt;&lt;b&gt;find / -name 'mypage.htm'&lt;/b&gt;&lt;/p&gt;                 &lt;p&gt;In the above example the system would search for                 any file named mypage.htm on the root and all subdirectories                 from the root.&lt;/p&gt;                 &lt;p&gt;&lt;b&gt;find -name 'file*'&lt;/b&gt;&lt;/p&gt;                 &lt;p&gt;In the above example the system would search for                 any file beginning with file in the current directory and any                 subdirectory.&lt;/p&gt;                 &lt;p&gt;&lt;b&gt;find -name '*' -size +1000k&lt;/b&gt;&lt;/p&gt;                 &lt;p&gt;In the above example the system would search for                 any file that is larger then 1000k.&lt;br /&gt;&lt;/p&gt;               &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Check to see what SSH commands was used on your server:&lt;br /&gt;&lt;br /&gt;/root/.bash_history&lt;br /&gt;&lt;br /&gt;=============================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to extract the IP's from Linux logs.&lt;br /&gt;&lt;br /&gt;============&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="abbc"&gt;&lt;div class="code"&gt;#!/usr/bin/php&lt;br /&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;if ($argc == 2 &amp;amp;&amp;amp; file_exists($argv[1])) {&lt;br /&gt;&lt;br /&gt;$file = file_get_contents($argv[1]);&lt;br /&gt;$regex = '/([\d]{1,3}\.){3}[\d]{1,3}/';&lt;br /&gt;&lt;br /&gt;$matches = array();&lt;br /&gt;$num = preg_match_all($regex, $file, $matches);&lt;br /&gt;&lt;br /&gt;fwrite(STDOUT, "Found " . $num . " matches:\n");&lt;br /&gt;&lt;br /&gt;foreach($matches[0] as $match) {&lt;br /&gt;    fwrite(STDOUT, $match . "\n");&lt;br /&gt;}&lt;br /&gt;} else {&lt;br /&gt;    fwrite(STDOUT, "Please supply a file to process.\n");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;exit(0);&lt;br /&gt;?&gt;&lt;/div&gt;&lt;br /&gt;Save as 'find_&lt;span class="highlight"&gt;ip&lt;/span&gt;s.php', and run &lt;span class="highlight"&gt;from&lt;/span&gt; the containing folder:&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;php find_ips.php /absolute/path/to/text/file&lt;/div&gt;&lt;br /&gt;Typing in 'php find_&lt;span class="highlight"&gt;ip&lt;/span&gt;s ' and then dragging the text &lt;span class="highlight"&gt;file&lt;/span&gt; to the Terminal window works great. You can p&lt;span class="highlight"&gt;ip&lt;/span&gt;e the results into another text&lt;span class="highlight"&gt;file&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;php find_ips.php /absolute/path/to/text/file &gt; output.txt&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.k6.ro/output.0.txt&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7156471096509150900-5792643894731866168?l=tiberiubazavan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/5792643894731866168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/5792643894731866168'/><link rel='alternate' type='text/html' href='http://tiberiubazavan.blogspot.com/2008/02/server-hacked.html' title='Server Hacked'/><author><name>company</name><uri>http://www.blogger.com/profile/13235370995767359225</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7156471096509150900.post-6379333649388944213</id><published>2007-08-12T04:19:00.000-07:00</published><updated>2007-08-12T04:21:52.293-07:00</updated><title type='text'>Tiberiu Bazavan</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Tiberiu Bazavan&lt;/span&gt;, pe numele complet Tiberiu Adrian Băzăvan se naşte in Videle, judetul Teleorman la 21 ianuarie 1982 ca fiu al profesorului universitar Ion Băzăvan şi al profesoarei universitare Amalia Băzăvan. Din anul 2001 urmează cursurile universitare la Universitatea de Medicină, din Craiova, dar în anul II renunţă la cursuri și înfiinţează compania ZettWalls. Tiberiu Băzăvan realizează prima afacere importantă in anul 2002, cand stabilește un parteneriat de succes alaturi de un coechipier din Sua. Grație pasiunii pentru domeniul IT si pentru promovare SEO, încheie o serie de contracte de colaborare cu diverși experți si oameni de afaceri din Sua si Europa.&lt;br /&gt;&lt;a href="http://tiberiubazavan.x6.ro"&gt;Tiberiu Bazavan&lt;/a&gt; afirmă că „pasiunea mea fața de internet este explicabilă, pentru că acesta furnizeaza unelte cu ajutorul cărora poți crea siteuri care pot avea un impact mondial la nivelul mediului online” . (Citat)&lt;br /&gt;Anul 2003 se dovedește a fi o alta perioada de incercari, cand Tiberiu Bazavan inițiază pachete impresionante de proiecte, desfașurandu-și activitatea și ca freelancer și intrand in contact cu persoane importante: posesori de bănci, experți seo, experți publicitate, specialiști IT de renume. Parteneriatul România- Sua este insa întrerupt din motive de neconcordanța strategica și relaționala, însă Tiberiu Băzăvan dezvoltă o rețea de bloguri, peste 600 la număr, pe care mai târziu le va oferi spre vânzare prin rețeaua Sedo.com&lt;br /&gt;X6.ro se pare că este cel mai important si de renume proiect al său. In februarie 2007 va pune bazele unuia dintre cele mai mari portaluri din Romania, folosindu-se de anii de experiența în mediul online internațional si de cunoștințele de promovare si strategie IT. Tot in anul 2007, lanseaza cea mai buna ofertă de publicitate online : &lt;a href="http://k6ro.x6.ro"&gt;K6.ro&lt;/a&gt;, care incă de la început se va număra printre cele mai profesionale firme de publicitate din România. Rompedia.ro si B6.ro – doua proiecte de succes în desfășurare, servicii ce oferă anunțuri gratuite online și cel mai mare portal de medicină din România.&lt;br /&gt;Care este cheia succesului pentru &lt;a href="http://tiberiubazavan.rompedia.ro"&gt;Tiberiu Bazavan&lt;/a&gt;? Perseverența, abilitați de strategie si organizare, cunoștințe vaste în domeniul IT și de ce nu, X6 !?&lt;br /&gt;La această biografie se va reveni periodic, deoarece &lt;a href="http://tiberiubazavan.hybridweb.ro"&gt;Tiberiu Bazavan&lt;/a&gt; derulează în prezent o serie de proiecte.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7156471096509150900-6379333649388944213?l=tiberiubazavan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/6379333649388944213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7156471096509150900/posts/default/6379333649388944213'/><link rel='alternate' type='text/html' href='http://tiberiubazavan.blogspot.com/2007/08/tiberiu-bazavan.html' title='Tiberiu Bazavan'/><author><name>company</name><uri>http://www.blogger.com/profile/13235370995767359225</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
