Posts

Running GUI Application From Another Display

If you run GUI application that requiring X11 display from another user you may got following error:Gtk-WARNING **: 17:59:33.449: cannot open display:
Run this command in current logged user for allowing display.
xhost +si:localuser:[USER]

Then in another user session for using opened displayexport DISPLAY=:0.0

Set specific vim configuration based on file type.

Example for ruby file format.

autocmd Filetype ruby setlocal ts=2 sw=2 softtabstop=2


[SCRIPT] Batch move user OU for samba 4

Provide a list of user's sAMAccountName in a file and DN of  OU (organizational unit).
Here's the example of running the script:

bash batchMoveSambaOU.sh /tmp/userList.txt "ou=IT,dc=mochtar,dc=net"

Centos: Solving SSL connection error to EPEL repository

the old Centos version like 6.X is commonly have encounter following error message while connecting to epel repository:

Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: problem making ssl connection


Postfix : Open New Instance With Filters

It's quite often our client is asking to add another server IP in trusted network list (a.k.a mynetworks) for sending email without any authentication, but sometime in the future it can be chaos since the application server possibly infected by malware that sending spam email outside. so then to prevent that we can instruct postfix to add instance that will be listen in port other than usually (port 25) and we enforce the rule to make sure it's originally email comes from legitimate sender, we can combine all filters together base on criteria such as by sender, headers, etc.
note: I'm using zimbra's postfix for these steps, you can adjust in your own local postfix's configuration. For the filter we will enforcing sender is notifikasi@sender.com, with subject that begin or must include with word Notifikasi.The allowed sender will be listed in a file, also we do the same for the header filters (Subject). The port will be listen on port 4545. Create the reference file …

Using ES6 directly in command line

As per this post node (version 10.6) is still not fully applying es6 features, anyway you can check it in here for the implementations, but if you not too patient waiting for it the solution is using Babel, but the question is how we treat babel as we execute js script normally using node (cli) ?, the answer is as follow.

Dark ozpy

Image
When Zimbra XXE and SSRF vulnerability has been found and published by tint0 in his blog i actively do the RnD to reproduce it by using Burp Suite and postman. The result is the CVE are working then i do broadcast to my team for the upgrade ASAP because at that time if anyone publishing the exploit it can lead to RCE (remote code execution) which a lot of things can do such as putting backdoor, etc.
Then i create a script for doing automation to scan several vulnerability zimbra (thanks to shodan and google dorks) if it's found then i do fetch some information and a POC after that i send them an email like this.