April 30, 2008 at 14:32
· Tags: convert, Debian, dos2unix, Linux, Open Source, plain text, txt, Ubuntu, win32, Windows
DOS text files traditionally have a carriage return and line feed character as newline character or symbol – mostly for historic reasons i think. Unix and Linux on the other hand have a line feed character as newline character in text files – and Macs have yet another “standard”.
From time to time I need to convert from one text file “standard” to another.
Red Hat-based Linux distributions are normally distributed with a small tool called dos2unix, which is able to do the conversion job very easy, but Debian-based Linux distributions like Debian itself and Ubuntu do not include the dos2unix tool by default.
The dos2unix tool i available in the Debian / Ubuntu package called tofrodos. To install the packages just type:
aptitude install tofrodos
Once you have the tofrodos package installed you are able to use the dos2unix command from the command line, like this:
dos2unix dosfile.txt
After running the command all the historic and crappy windows newlines are gone.
Related posts:
- Recursive convert dos newlines to unix ones with dos2unix
- Howto: Create your own Debian or Ubuntu package repository
- Howto: Install Ruby and Rails on Debian or Ubuntu
- Ubuntu Howto: Install Oracle
- Bash shortcuts tips and tricks
- Howto install Sun Java on Debian Sarge
- Howto Install Oracle on Debian
- Howto: Write Debian Package Descriptions
- How to mount bin / cue image files in Linux
- Howto: Install Windows Vista Fonts in Ubuntu
Permalink
April 13, 2008 at 8:38
· Tags: .Net, AJAX, apache, django, Firefox, GWT, howto, Internet Explorer, Java, JavaScript, Open Source, Opera, OWASP, PCI, PCIDSS, PHP, Python, RoR, Ruby, Ruby on Rails, Safari, security, Tutorial, web applications, XSS
Developing a web applications is often articulated as easy and a good thing for new programmers to start with. Many books and tutorials have been written on the subject, and many frameworks and programming languages have been built to facilitate quick construction of web applications. Just one thing bothers me about this, many of the books and tutorials ignore many of the security issues that are related to building web applications. This fact might explain why we do have such a huge number of insecure and vulnerable web applications around on the net.
Anyway, it is not just bad – a number of initiatives have been formed to communicate the need for security and web-based applications. One of these initiatives is OWASP, which is an open-source application security project. The OWASP community includes corporations, educational organizations, and individuals from around the world. This community works to create freely-available articles, methodologies, documentation, tools, and technologies.
OWASP’s most successful documents include the book-length OWASP Guide and the widely adopted OWASP Top 10 awareness document. The most widely used OWASP tools include their training environment WebGoat, their penetration testing proxy WebScarab, and their OWASP .NET tools. OWASP includes roughly 100 local chapters around the world and thousands of participants on the project mailing lists. OWASP has organized the AppSec series of conferences to further build the application security community.
Hopefully initiatives like OWASP will provide up-coming web developers with a awareness of the security issues related to development of web application and enable them to avoid the classic pitfalls in web application security. At least so far I have learned a lot from OWASP articles and guides.
Related posts:
- Google Gives Away Web App Security Tool
- PHP Source Code Security Audit Tool
- 68 Linux Related Free E-books
- Voices That Matter: GWT – Security
- Test your environment’s security with BackTrack
- Popular Photoshop Tutorials
- Firefox Flash Interaction Bug: I Cannot Click In Flash Application e.g. Youtube
- Top 15 Free SQL Injection Scanners
- Howto Install Ruby and Ruby on Rails on Debian Etch 4.0
- Germany warns users against Internet Explorer
Permalink
April 10, 2008 at 16:26
· Tags: Linux, Microsoft, odf, office, OOXML, Open Source, Open Standards, OpenDocument, OpenOffice
Microsoft Windows is collapsing under its own weight and radical changes are needed to change that according to Gartner.
Microsoft’s Windows juggernaut is collapsing as it tries to support 20 years of applications and becomes more complicated by the minute. Meanwhile, Windows has outgrown hardware and customers are pondering skipping Vista to wait for Windows 7. If Windows is going to remain relevant it will need radical changes.
That sobering outlook comes courtesy of Gartner analysts Michael Silver and Neil MacDonald. Half of a full room of IT managers and executives raised their hands when asked whether Microsoft needed to radically change its approach to Windows. “Windows is too monolithic,†says Silver.
News Stories on the issue
– Windows collapsing under its own weight; Radical change needed
– Gartner: Windows heavyweight champ, but no longer nimble
Well, Well – Finally somebody shed light on this issue.
Could he same thing be said about the recently ISO-approved standard OOXML, since it is very bloated too – especially compared to OpenDocument (odf).
Related posts:
- Microsoft forced partners to vote Yes
- ISO captured by vendor Microsoft?
- How to Download Microsoft Windows 7
- NO to the Microsoft Office format as an ISO standard
- an ex-microsoft employee’s view on Linux and the open source community
- Unix beats Windows – says Microsoft Research
- Microsoft’s Annual Report Reveals OSS Mistakes
- Windows Developers Begin Slow Defection to Linux
- Microsoft is using Linux
- Vulnerability: Microsoft Excel 2000 and 2003 exploit
Permalink
April 2, 2008 at 11:00
· Tags: cracking, Debian, Linux, security, Ubuntu
Warning: Malicious use of SYN-floods are punishable by law.
This post shows howto to establish a synflood attack on an arbitrary remote host. The attack is performed using hping, which is free packet generator and analyzer for the TCP/IP protocol. Hping is one of the de facto tools for security auditing and testing of firewalls and networks. A syn-flood attack is basically a DOS-attack on a bug in TCP – some will argue that TCP is defective by design
The actual attack is initialized by this command:
hping -i u1 -S -p 80 dst-host-or-ip
In most cases DoS attacks like this one renders a webserver totally unable to serve any requests from users.
To get hping installed on a Debian or Ubuntu-based system, type this to install:
aptitude install hping2
Related posts:
- HackerGuide: Sniff Live Network Connections Using Ettercap
- HackerGuide: Crack Password Encrypted Zip-files
- TCP Resource Exhaustion Denial of Service (DoS) Attack
- Bash shortcuts tips and tricks
- Hack Wireless WEP Network
- What is the coolest thing you can do using Linux that you can’t do with Windows or on a Mac?
- dos2unix on Ubuntu and Debian
- Run Single Commands on a SSH-based Server
- Combine Multiple PDFs Into One File
- Crack Cisco VPN (hack)
Permalink