SlideShare a Scribd company logo
1 of 6
Download to read offline
PHP Obfuscator
  Hanafi Ali Jan, ST, C|EH
  Security Analyst #HaNJiaN
Obfuscate

• Kebingungan
• Kesulitan
• Di Mengerti Manusia Super
• Tidak di Mengerti Manusia
  Biasa
• XOR, Base64, SHA, MD5.
How to Build Source Obfsucator ???


Understand Server Script (PHP, ASP, JSP)
Shell OS
Assembler & C Lenguage
C # for Control it
PHP Original


<?php
echo "Hello World!!";
?>
Encode in PHP
<?php $UIHq =
  'ICRRV0lqID0gJ0lDUkZSM1ZtSUQwZ0owbERVbk5WTWxaT1NVUXdaMG93YkVSVmJGc
  HNWMFphTkZOVlVYZGFNRzkzWWtWU1ZtSllVbFpXTUZwM1l6Rk9WbFZZWkdGTlJ6a3
  pXV3RXYjFZeVNsbFJiVGxXWW01Q2RsbHRlRTlYUjFKSVQxZHNVMDFJUWtwWGJGWnZ
  XVlpPYzFOdVVsWmhhM0JoVkZkd1JrMUdiRlZSYms1WFVtdHdXVmxyV2tOaVJscFdWbFJ
  XVkdKdVFqWlpWRVozWkVVNVNGcEdSbFpOUlZveFZUSjBiMVV5VG5SVmJrSlNWa2Q0
  UzFWcVFuZGlNV3cyVTJ4YVRtRjZWa2hVTVdRd1dWWlpkMDVVU2xoaE1sSlhXV3BDZDF
  OR1ZuSk9WM1JwVm14YU0xWkVUbk5STWtwSVZXNVNVMkpyTlUxVlZFWktaREZzVlZS
  c2NHcFNWR3N4VjFod2ExbFdaRWRqUnpsYVlUQTFkVmxVUm5ka1JUbEpVV3hDYTJWc
  VFUVlRibkI2WVRGVmVHSXlaRkZWTUVaMVUydGtVMWRHU2xSUlZHeEtVakJ3YjFsNlNs
  Wk5helZIVDFkMFlWWXdOVEpYYTJSV1lqQndSMVpxVm10WFJWWjNWRE5zUTJKSFVu
  UlNiazVNVVRGS2NsWnFRbFpqUlRrMVdYcGtZVmRHY0c5WmEwNXVZVEZWZUdJelFsQ
  mtlakE1U25wemEyUnNZMmRRVTBGdVNrWk9hVmxwUVRsSlIwcG9ZekpWTWs1R09X
  dGFWMDUyV2tkVmIwcEhlRlJhVlRCd1QzbENiR1J0Um5OTFExSlVXVzFKY0U5NVl6ZGFX
  RnBvWWtObmEyUnNZM0JQZHowOUp6c2tXV29nUFNBbkpIRlBheUE5SUdKaGMyVTJO
  RjlrWldOdlpHVW9KRVZIZFdZcE95QmxkbUZzS0NSeFQyc3BPeWM3WlhaaGJDZ2tXV29
  wT3c9PSc7JEZIID0gJyRQbVEgPSBiYXNlNjRfZGVjb2RlKCRRV0lqKTsgZXZhbCgkUG1RKTsn
  O2V2YWwoJEZIKTs=';$Wt = '$puw = base64_decode($UIHq);
  eval($puw);';eval($Wt);?>
Source & Reference

• http://www.raizlabs.com/software/phpobfuscator/
• http://en.wikipedia.org
• http://google.com

More Related Content

Similar to Php obfuscator

PHP Tips for certification - OdW13
PHP Tips for certification - OdW13PHP Tips for certification - OdW13
PHP Tips for certification - OdW13
julien pauli
 
Anatomy of a PHP Request ( UTOSC 2010 )
Anatomy of a PHP Request ( UTOSC 2010 )Anatomy of a PHP Request ( UTOSC 2010 )
Anatomy of a PHP Request ( UTOSC 2010 )
Joseph Scott
 
Security in PHP - 那些在滲透測試的小技巧
Security in PHP - 那些在滲透測試的小技巧Security in PHP - 那些在滲透測試的小技巧
Security in PHP - 那些在滲透測試的小技巧
Orange Tsai
 
Orange@php conf
Orange@php confOrange@php conf
Orange@php conf
Hash Lin
 
(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" web(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" web
Web::Strategija
 
Lecture2_IntroductionToPHP_Spring2023.pdf
Lecture2_IntroductionToPHP_Spring2023.pdfLecture2_IntroductionToPHP_Spring2023.pdf
Lecture2_IntroductionToPHP_Spring2023.pdf
ShaimaaMohamedGalal
 

Similar to Php obfuscator (15)

PHP Tips for certification - OdW13
PHP Tips for certification - OdW13PHP Tips for certification - OdW13
PHP Tips for certification - OdW13
 
Anatomy of a PHP Request ( UTOSC 2010 )
Anatomy of a PHP Request ( UTOSC 2010 )Anatomy of a PHP Request ( UTOSC 2010 )
Anatomy of a PHP Request ( UTOSC 2010 )
 
$kernel->infect(): Creating a cryptovirus for Symfony2 apps
$kernel->infect(): Creating a cryptovirus for Symfony2 apps$kernel->infect(): Creating a cryptovirus for Symfony2 apps
$kernel->infect(): Creating a cryptovirus for Symfony2 apps
 
Security in PHP - 那些在滲透測試的小技巧
Security in PHP - 那些在滲透測試的小技巧Security in PHP - 那些在滲透測試的小技巧
Security in PHP - 那些在滲透測試的小技巧
 
Orange@php conf
Orange@php confOrange@php conf
Orange@php conf
 
Php
PhpPhp
Php
 
5. php bangla tutorial php basic
5. php bangla tutorial php basic5. php bangla tutorial php basic
5. php bangla tutorial php basic
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" web(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" web
 
Php basic for vit university
Php basic for vit universityPhp basic for vit university
Php basic for vit university
 
basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)
 
Php
PhpPhp
Php
 
Lecture2_IntroductionToPHP_Spring2023.pdf
Lecture2_IntroductionToPHP_Spring2023.pdfLecture2_IntroductionToPHP_Spring2023.pdf
Lecture2_IntroductionToPHP_Spring2023.pdf
 
PHP Basics and Demo HackU
PHP Basics and Demo HackUPHP Basics and Demo HackU
PHP Basics and Demo HackU
 
PHP Doesn't Suck
PHP Doesn't SuckPHP Doesn't Suck
PHP Doesn't Suck
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Php obfuscator

  • 1. PHP Obfuscator Hanafi Ali Jan, ST, C|EH Security Analyst #HaNJiaN
  • 2. Obfuscate • Kebingungan • Kesulitan • Di Mengerti Manusia Super • Tidak di Mengerti Manusia Biasa • XOR, Base64, SHA, MD5.
  • 3. How to Build Source Obfsucator ??? Understand Server Script (PHP, ASP, JSP) Shell OS Assembler & C Lenguage C # for Control it
  • 5. Encode in PHP <?php $UIHq = 'ICRRV0lqID0gJ0lDUkZSM1ZtSUQwZ0owbERVbk5WTWxaT1NVUXdaMG93YkVSVmJGc HNWMFphTkZOVlVYZGFNRzkzWWtWU1ZtSllVbFpXTUZwM1l6Rk9WbFZZWkdGTlJ6a3 pXV3RXYjFZeVNsbFJiVGxXWW01Q2RsbHRlRTlYUjFKSVQxZHNVMDFJUWtwWGJGWnZ XVlpPYzFOdVVsWmhhM0JoVkZkd1JrMUdiRlZSYms1WFVtdHdXVmxyV2tOaVJscFdWbFJ XVkdKdVFqWlpWRVozWkVVNVNGcEdSbFpOUlZveFZUSjBiMVV5VG5SVmJrSlNWa2Q0 UzFWcVFuZGlNV3cyVTJ4YVRtRjZWa2hVTVdRd1dWWlpkMDVVU2xoaE1sSlhXV3BDZDF OR1ZuSk9WM1JwVm14YU0xWkVUbk5STWtwSVZXNVNVMkpyTlUxVlZFWktaREZzVlZS c2NHcFNWR3N4VjFod2ExbFdaRWRqUnpsYVlUQTFkVmxVUm5ka1JUbEpVV3hDYTJWc VFUVlRibkI2WVRGVmVHSXlaRkZWTUVaMVUydGtVMWRHU2xSUlZHeEtVakJ3YjFsNlNs Wk5helZIVDFkMFlWWXdOVEpYYTJSV1lqQndSMVpxVm10WFJWWjNWRE5zUTJKSFVu UlNiazVNVVRGS2NsWnFRbFpqUlRrMVdYcGtZVmRHY0c5WmEwNXVZVEZWZUdJelFsQ mtlakE1U25wemEyUnNZMmRRVTBGdVNrWk9hVmxwUVRsSlIwcG9ZekpWTWs1R09X dGFWMDUyV2tkVmIwcEhlRlJhVlRCd1QzbENiR1J0Um5OTFExSlVXVzFKY0U5NVl6ZGFX RnBvWWtObmEyUnNZM0JQZHowOUp6c2tXV29nUFNBbkpIRlBheUE5SUdKaGMyVTJO RjlrWldOdlpHVW9KRVZIZFdZcE95QmxkbUZzS0NSeFQyc3BPeWM3WlhaaGJDZ2tXV29 wT3c9PSc7JEZIID0gJyRQbVEgPSBiYXNlNjRfZGVjb2RlKCRRV0lqKTsgZXZhbCgkUG1RKTsn O2V2YWwoJEZIKTs=';$Wt = '$puw = base64_decode($UIHq); eval($puw);';eval($Wt);?>
  • 6. Source & Reference • http://www.raizlabs.com/software/phpobfuscator/ • http://en.wikipedia.org • http://google.com