• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Disassemble .deb Package (Ubuntu and Debian Linux)

By Abhishek Ghosh March 2, 2015 8:53 am Updated on March 2, 2015

How to Disassemble .deb Package (Ubuntu and Debian Linux)

Advertisement

Here is How to Disassemble .deb Package for Linux Distro Like Ubuntu or Debian if Source Code is Not Supplied. Need May Be To Remove Spyware. For the Free Softwares (in accordance to FSF / GNU ‘s definition and listing of Free Softwares), we do not need to disassemble .deb package, simply because we have the binary and we can modify, remove or add function and use make or apt to create the installer. But, it can be a demanding need to disassemble .deb package for kind of softwares like various agents used for servers. It is quite normal, the softwares developers who packages spyware with these non-free softwares might label the process even as illegal. However, it does not fall among reverse engineering, as you are checking for any existing spyware function. Apache2 web server software, for example does not need checking per se but you can use the .deb package for learning purpose.

 

Before You Disassemble .deb Package Know To Control Router and Ingrees-Egress Policies

 

A physical router should be the best, but you can use a virtual device; like that provided by HP Cloud or Amazon. You can read HP Cloud Getting Started, Ingress Egress Policy for basic knowledge.

Other than these, you should check your Linux instances sources.list and run level to check what are added apart from the main application.

Advertisement

---

For example, if Apache2 was a paid software and you installed it after payment, you should check for any malware or spyware function. If you do not control the function from one level up the instance, it can open another backdoor. Ideally for Apache2 as hypothetical paid non-Free software with Spyware, you should use another kind of spyware named OpenStack to take the snapshot, build an instance with a different security group settings – you’ll allow only Port 22 Ingress. We are keeping the subnet free to access. sources.list is very important part to ensure that the non-Free software developer is not watching you. You are working with a Physical Firewall – otherwise, they might switch the mechanism of running spyware activity or push a different version as update only for you.

In short, Apache2 as paid software is not accessible over the Internet. You have to use a Text Based Browser on SSH to check the localhost webpages, in case you need to see. There are other options like cURL.

How to Disassemble deb Package

 

Disassemble .deb Package (Ubuntu and Debian Linux)

 

The way a Linux software get installed is not exactly the way create the package. The arrangement differs, the files are not present and rebuild will fail if you try to assemble .deb Package again unless it is installed. In other words, the software needs to be installed and you need to have the deb package. This .deb can be found in apt-cache.

Basically, if we tell all the steps, it becomes frank illegal hacking. You need to apply your practical idea. non-Free software developers are very dangerous, they can file dangerous criminal Law suit against you unless you properly block the ports. If you use 100% Free-Softwares from FSF, it will not allow to install a spyware.

When we extract with dpkg-deb, we extract the data.tar.gz and control.tar.gz directories. They contain important informational files. An example :

Vim
1
2
dpkg-deb -x apache_i386.deb free-apache
dpkg-deb -e apache_i386.deb free-apache/DEBIAN

free-apache is funnily used, but that ./DEBIAN is a constant for all deb Linux. In this method using dpkg-deb, the steps should be :

Vim
1
2
3
4
dpkg-deb “extract package.deb new-one
dpkg-deb -e package.deb new-one/DEBIAN
# after you modify files inside new-one dir
dpkg-deb -b new-one

Second method is great and not basically dependent on the running disto. You can perform these on BSD or OS X too. .deb files are ar archives, containing debian-binary, control.tar.gz and data.tar.gz stuffs. With dpkg-deb there are some limitations but there advantages too. It depends upon the thing and you, which method you’ll use.

If you run :

Vim
1
ar vx package.deb

It basically becomes .tar.gz file. Simply you can run :

Vim
1
ls -al

and then run tar -xzvf command. It get split into simple tar files. For RPM, you will need to follow this guide :

Vim
1
http://www.g-loaded.eu/2008/01/28/how-to-extract-rpm-or-deb-packages/

Frankly, on OS X, you can use AnyToISO to extract .deb from GUI. But, for serious softwares containing malware, it is risky not to control the networking in real time. You should be careful, what you are doing.

Rewriting the software is the cleaner idea. That is done to fix many non-Free software. Otherwise the work becomes of a warez supplier. warez are developed in hit or miss, trial and error methods. They might have more security loop holes.

Tagged With dpkg -i package deb
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Disassemble .deb Package (Ubuntu and Debian Linux)

  • Glossary of dangerous dll files of Windows operating system

    We have gathered information about some well known dangerous dll files of Windows 7 and other operating system. It will work as reference to delete them easily if someone faces such dll file.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Install .deb Packages in Ubuntu or Other deb GNU/Linux

    Sometimes a .deb Package is Not Available on Repo & Available Elsewhere. Here is How to Install .deb Packages in Ubuntu or Other deb GNU/Linux.

  • Installing .deb package on .rpm Based Linux for Server

    Installing .deb package on .rpm Based Linux for Server became relevant when we wanted to install OpenPanel on CentOS or any REHL Linux.Here is how we can do it.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy