LIVE FEED :: 11111110.00000000.00000000.00000001

Tugriceri Web Notes

Operational telemetry, Linux internals, forensic carving, and infrastructure automation war stories. by Emre Tugriceri.

88 Field Runbooks 30 System Taxonomies Archive: 2013 – 2026 SYS_HEALTH: OPTIMAL
Emre Tugriceri • • 1 min read
Security

Cer to Pem

You can convert cer file to pem with this example command. openssl x509 -in certnewb.cer -inform DER -out certnewb.pem -outform PEM if you have a Microsoft CA server and if you signed your certification request with this CA server, this server will give to you der encoded certnew.cer file. you can convert this file to pem format for the any apache server.

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Programming

Making patch file

Creating patch file with diff. 

shell > diff -Naur old_file new_file > patch_file

shell > diff -Naur gazlo.pl gazlo_new.pl > gazlo.patch

shell > patch < gazlo.patch




Powered by ScribeFire.

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Mail

Dovecot Error

imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory

64 bitlik bir sistem üzerinde dovecot ta imap ile ssl i aktif ettiğim zaman üstteki uyarıyı alıyordum. Problemin çözümü için /etc/dovecot.conf dosyası içerisinden;

"login_process_size = 32" olan değeri "login_process_size = 64" olarak değiştirmek yeterli.

Dovecot.conf içerisindeki açıklama ;

# Set max. process size in megabytes. If you don't use
# login_process_per_connection you might need to grow this.


Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Shell

File Replace with sed


-i[SUFFIX], --in-place[=SUFFIX]

edit files in place (makes backup if extension supplied)


[root@etugriceri sil2]# sed -i 's/LAND/AIR/i' *




Powered by ScribeFire.

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Mail

Fetchmail example


Example .fetchmailrc file ;

[root@mail Maildir]# cat /root/.fetchmailrc

defaults
fetchall
keep
set no bouncemail


poll 127.0.0.1 protocol IMAP
user efsaneuser@superdomain.com there with password xxxxx is efsane.user@superdomain.com here
smtphost 192.168.0.10
-----------------------------------------------
if you want to fetch old mails with subfolders, you can try this settings.

[root@mail Maildir]# cat /root/fet.sh

for gonder in "INBOX.Ocak" "INBOX.Subat" "INBOX.Mart" "INBOX.Nisan" "INBOX.Mayis" "INBOX.Haziran" "INBOX.Temmuz" "INBOX.Agustos" "INBOX.Eylul" "INBOX.Kasim" "INBOX.Aralik"
do
fetchmail -r $gonder
done





Powered by ScribeFire.

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Mail

Qmail time stamps

tai64nlocalQmail log larındaki TAI64N timestamp değerlerini okunabilir formata çevirmektedir. Örnek olarak ; [root@mail smtp]# echo "@4000000037c219bf2ef02e94" | tai64nlocal 1999-08-24 07:04:05.787492500 cat @4000000047414fa33437fd14.s | tai64nlocal şeklindede kullanılabilir.

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Security

Php safe_mode

php_admin_flag safe_mode On safe_mode ile php, script in sahibi ile erişilmeye çalışılan dosya sahibini kontrol eder. Belirli bir directory deki scr çalışmaması için. php_admin_flag engine off Aynı şekilde safe_mode da uygulanabilir.

Powered by ScribeFire.

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Linux

smtp-auth test with telnet

$wget http://www.infocopter.com/know-how/bin/mimencode $mv mimencode /bin $chmod 755 /bin/mimencode $ echo "user@domain.com\0user@domain.com\0password" | mimencode dXNlckBkb21haW4uY29tXDB1c2VyQGRvbWFpbi5jb21cMHBhc3N3b3JkCg== $telnet localhost 25 auth plain dXNlckBkb21haW4uY29tXDB1c2VyQGRvbWFpbi5jb21cMHBhc3N3b3JkCg== 235 ok, go ahead (#2.0.0)

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Linux

Qmail finding configuration problems



Life with qmail

It sometimes helps to run a service manually in order to find configuration problems. For example, if your qmail-smtpd/log service isn't running, do:
cd /service/qmail-smtpd/log
svc -d .
./run
if no errors, enter a line of text and press ENTER
if still no errors, enter CTRL-D (end of file)

At this point, you should be able to identify the problem and fix it. Once that’s done, return to the service’s directory, if necessary, and do:

Comments (0) Read Playbook →