Technical

Archive for Technical

CWP Backup Comands

We had a issue for a customer where their CWP server wasn’t backing up.

 

to test it from the CLI

 

/opt/alt/php56/usr/bin/php -d max_execution_time=10000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

Just make sure that PHP 5.6 is installed first.

Posted in: Blog, Technical

Leave a Comment (0) →

Syncro RMS uninstall Password

So i looked a a trial for Syncro RMS and it looks cool. I signed up for a trial and installed the agent on a machine and took it for a test drive. Then my trial expired and i can not log in to the dashboard anymore. no big deal until…. i try to uninstall the agent from my pc. I get a message asking for the uninstall password. I can not log in to the dash board to do a remote uninstall and i have no idea what the code is so i went looking.

 

I found Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\RepairTech\Syncro\uninstall_code

 

if you run this command at a command prompt you will get your key.  reg query HKLM\SOFTWARE\WOW6432Node\RepairTech\Syncro /v uninstall_code

 

 

Posted in: Blog, Technical

Leave a Comment (0) →

PHPServerMon Public Page Hack

Yes there is my modifications :

Create a Public user, give access to servers you want
Memorize the ID it gives to you
\src\psm\Service\User.php
Line 98 (after $this->session = $session;)

$kl = “”;
$kl = isset($_GET[“kl”]) ? $_GET[“kl”] : ”;
if ($kl == “public”){
$user_id = 3;
$this->setUserLoggedIn($user_id, true);
$user = $this->getUser($user_id);
$this->newRememberMeCookie();
}

When you will tap the URL http:/server/servermonitor/?kl=public it will take the Public account

This method use a particular userid so even if somebody change the password, the script will never use it anyway.

I changed something else to cut some menu items
\psm\Module\AbstractController.php

Line 271 : erase the server_update function, I think this is only the crontab need to make a status update and I seen some troubles when I make it manually.

$items = array(‘server_status’, ‘server’, ‘server_log’, ‘user’, ‘config’);

Line 274 : comment the entire items line, when you are only User (Public account) you don’t want to have other things to see other then the servers status page

//$items = array(‘server_status’, ‘server’, ‘server_log’, ‘server_update’);

 

Source is https://sourceforge.net/p/phpservermon/discussion/845823/thread/f1b2e4ff/#66a7

 

With some modes to the code.

Posted in: Blog, Technical

Leave a Comment (0) →

“WARNING: Interbase component has been detected on the computer”

Error: “WARNING: Interbase component has been detected on the computer”
Ensure ALL previous versions of Interbase Client have been COMPLETELY uninstalled from this computer PRIOR to running the Medtech IBXE-7 Update5 Server Setup Installation.


This typically happens when the InterBase Services are not completely stopped (both Guardian and Server Services) prior to uninstalling the old version of InterBase. It leaves associated DLL file/s behind which need to be removed.

Before attempting to install, delete all “Embarcadero” and “InterBase” folders in:
C:\Program Files\
C:\Program Files (x86)\Borland\

Delete the GDS32.DLL file (the culprit) from C:\Windows\SysWOW64 folder and attempt the installation again.

Posted in: Blog, Technical

Leave a Comment (1) →

Yeastar Password Reset

1. Power on your MyPBX U520 device, with Putty connected to console (baud rate 57600)

2. As soon your device got power, press any key several times to interrupt the boot process of device and get to the u-boot prompt, in my case it was

pbx300>

3. Enter the printenv command to get the u-boot constant values.

4. You should see this type of output:

bootdelay=1
baudrate=57600
autoload=no
verify=yes
loadaddr=0x81000000
ipaddr=192.168.5.52
update-sf=tftp 0x88000000 u-boot.spi;sf probe 0;sf erase 0 0x40000;sf write 0x88000000 0 ${filesize}
bootargs=console=tty01,57600n8 rw mem=768M root=/dev/ram
ramboot=run nandboot1;run nandboot2;run tftp-boot


and other output

5. Now you need the bootargs row. Copy the bootargs value.

6. Set the boot arguments to boot the single user mode.
For this, enter this command:
setenv bootargs ‘paste your bootargs + keyword single

For me it was like this:

pbx300>setenv bootargs 'console=tty01,57600n8 rw mem=768M root=/dev/ram single'

BE VERY CAREFULL AND DONT COPY FROM HERE, YOU CAN HAVE DIFFERENT VALUES IN YOUR BOOTARGS ROW!

Changes made by setenv are lost after reboot!

7. After you set the new boot arguments, you can process to boot into the system.
If you will enter the saveenv command, you will save the current configured bootargs, and will enter single mode every time after reboot, so DONT saveenv!

8. Enter the boot command to boot with configured single mode.

9. You should boot in the system with the @(none):/# prompt.

10. Type /dev/ and press Tab twice. You should get the list of devices. You are interested in mtdblock2 device. This is the NAND memory the PBX normally boots from.

11. Create temporary mount point, using this command:

@(none):/# mkdir /mnt/temp

12. After mount point was created, mount mtdblock2 device to your running system, like that:

@(none):/# mount -t yaffs2 /dev/mtdblock2 /mnt/temp

-t yaffs2 = indicates that mounted device has YetAnotherFlashFileSystem

13. Now access memory through mount point.

@(none):/# cd /mnt/temp

Enter ls command and check if there is present /etc directory. If yes, cd into it

@(none):/mnt/temp# cd ./etc/

14. ls again, you should find passwd file.

15. Now you are going to purge the forgotten root password. For this you need to edit the passwd file, where all password are saved in encrypted form.

Check your prompt, it indicates that you are int the etc directory:

@(none):/mnt/temp/etc#

Open passwd file using ‘vi’ text editor

@(none):/mnt/temp/etc# vi passwd

See the row (in my case):

root:m*&y32yu48&*(u4yh3r43^yio.t/fvGaz:0:0:root:/:/bin/sh

The random bunch of letters and characters

m*&y32yu48&*(u4yh3r43^yio.t/fvGaz

is the encrypted password.
CAREFULLY DELETE it, so you get the following row:

root::0:0:root:/:/bin/sh

15. Enter :wq command to save and exit from the editor. Enter vi passwd command again and check if anything is ok and password is purged. Enter the :q command to just exit the vi text editor.

16. Enter the reboot command. Now your PBX will boot in normal way, because after reboot your setenv settings will be lost, because these was  not saved with the saveenv command. However, root password is purged now.

17. After PBX boots up and login as: prompt apperas, try to login as root. When the password prompt will appear, just hit ENTER.

You should be able to log in console with root privileges. Now enter passwd command and enter the new password.

That’s all. Be careful and don’t forget your passwords, like i did, haha! 😀

Source https://support.yeastar.com/hc/en-us/community/posts/222734327-MyPBX-U520-root-password-reset

 

Posted in: Blog, Technical

Leave a Comment (0) →

Magento not able to log in with chrome. No Error

I had a customer update their Magento install and after got reports that chrome users couldn’t log in some times. I found a post that point me in the right direction after spreading a while researching the issue.

 

The trick was to create the directory app/code/local/Mage/Customer/Model and copy the file Session.php from app/code/core/Mage/Customer/Mode  into it.

Then comment out $this->renewSession(); from the setCustomerAsLoggedIn Function.

So it looks like this.

    public function setCustomerAsLoggedIn($customer)
{
    $this->setCustomer($customer);
    //$this->renewSession();
    Mage::dispatchEvent('customer_login', array('customer'=>$customer));
    return $this;
}

Make sure to clear out all login cookies using ./n98-magerun.phar cache:clean config

If this doesn’t work try running  n98-magerun.phar sys:check and check if there are any issues listed.

Posted in: Blog, Technical

Leave a Comment (0) →

Send from domain IP addresses MailCleaner CBL

 

I have a customer that got listed on CBL using Mailcleaner.

I found this.

If you have mailservers relaying through your mailcleaner cluster, do not turn on “Mask IP address of relayed host on port 587” OR “Masquerade relayed HELO with sender domain” as you wil find yourself listed very quickly in the CBL.abuseat.org RBL, which is part of Spamhaus XBL, and hence can unleash a world of pain if you get listed.

Source http://forum.mailcleaner.org/viewtopic.php?t=2230

 

Posted in: Blog, Technical

Leave a Comment (0) →

iPECS eMG80 Password Reset

iPECS eMG80 web admin password reset

To reset the user, admin or maintenance level password to the default values. This
procedure has been available since software A.0Fc. To complete this you must
connect directly to the Serial port on the eMG80. This is for security reasons that this
procedure needs to be performed on-site.
The serial settings on your HyperTerminal session should be 115300 Baud, 8 data
bits, no parity, 1 stop bit, no flow control.
1. Connect your PC’s serial port to the eMG80 serial port with an appropriate
serial cable or serial converter.
2. Start a Telnet session with the settings above.
3. Press enter – you should get a similar prompt:-
iPECS eMG80 System
Version MPB/AU86M-1.0Jc JAN/15
Checksum: 0
Dsp Version: 1.6(14/02/25),(A-law)
DATE: 01/27/15
TIME: 15:40:51
SITE NAME : Test PRI
You are on COM1
ENTER PASSWORD:
4. Type the password “jannie”, and press enter to access maint> mode,:-
ENTER PASSWORD: ******
5. To clear all admin and maintenance passwords, your only option, type:- ‘web
id reset’ and press enter:-
maint> web id reset
[0] Id[Maint] Level[10]=>[3] Reset!!!
Maint Level Reset end!!!
[0] Id[Maint] Pwd[*] Level[3:User] stn[0:0:0:0:0]
[1] Id[Admin] Pwd[*] Level[4:Admin] stn[0:0:0:0:0]
Display User Info end!!!
6. Finally exit the maintenance utility by typing:- x
maint> x
DATE: 1/27/15 TIME: 15:44:50
Exiting maintanence utility…

Earlier versions of <5.5 you could simply telnet into it via the MFIM IP, but this was a security issue, so its been restricted to serial only on 5.5+ system software.

The systems default IP address is 10.10.10.2 / 255.255.255.0 so your Ethernet card should be set to 10.10.10.254 to ensure correct connectivity.

The default username is “admin” with a password of “1234”

Posted in: Blog, Technical

Leave a Comment (0) →

ERROR Non Genuine Consumable

If you replace toner cartridges, image drums or other consumables with any non-genuine ones, “Unknown Consumable detected” appears and the device stops working.

To continue printing by using non-genuine consumables

When “Unknown Consumable detected” appears on the touch panel and the device stops working, you can follow the procedure below to switch to an operable state.

Note
Once you switch to an operable state, a log of having used non-genuine consumables will be recorded in the device.

1.Turn off the device.

2.Press and hold the [Clear] button to turn it on.

3.Once “RAM CHECK 100%” appears on the touch panel, release the [Clear] button.

Posted in: Blog, Technical

Leave a Comment (0) →
Page 1 of 8 12345...»