dapurhosting.com Blog for Tech

April 13, 2018

Spamming Joomla

Filed under: CMS — Tags: , — dh @ 4:37 pm


UPDATE jos_extensions SET params = '{\"show_contact_category\":\"hide\",\"show_contact_list\":\"0\",\"presentation_style\":\"sliders\",\"show_name\":\"1\",\"show_position\":\"1\",\"show_email\":\"0\",\"show_street_address\":\"1\",\"show_suburb\":\"1\",\"show_state\":\"1\",\"show_postcode\":\"1\",\"show_country\":\"1\",\"show_telephone\":\"1\",\"show_mobile\":\"1\",\"show_fax\":\"1\",\"show_webpage\":\"1\",\"show_misc\":\"1\",\"show_image\":\"1\",\"image\":\"\",\"allow_vcard\":\"0\",\"show_articles\":\"0\",\"show_profile\":\"0\",\"show_links\":\"0\",\"linka_name\":\"\",\"linkb_name\":\"\",\"linkc_name\":\"\",\"linkd_name\":\"\",\"linke_name\":\"\",\"contact_icons\":\"0\",\"icon_address\":\"\",\"icon_email\":\"\",\"icon_telephone\":\"\",\"icon_mobile\":\"\",\"icon_fax\":\"\",\"icon_misc\":\"\",\"show_headings\":\"1\",\"show_position_headings\":\"1\",\"show_email_headings\":\"0\",\"show_telephone_headings\":\"1\",\"show_mobile_headings\":\"0\",\"show_fax_headings\":\"0\",\"allow_vcard_headings\":\"0\",\"show_suburb_headings\":\"1\",\"show_state_headings\":\"1\",\"show_country_headings\":\"1\",\"show_email_form\":\"0\",\"show_email_copy\":\"1\",\"banned_email\":\"\",\"banned_subject\":\"\",\"banned_text\":\"\",\"validate_session\":\"1\",\"custom_reply\":\"0\",\"redirect\":\"\",\"show_category_crumb\":\"0\",\"metakey\":\"\",\"metadesc\":\"\",\"robots\":\"\",\"author\":\"\",\"rights\":\"\",\"xreference\":\"\"}' WHERE name = 'com_contact' AND type = 'component';

UPDATE jos_extensions SET params = '{\"allowUserRegistration\":\"0\",\"new_usertype\":\"2\",\"useractivation\":\"1\",\"frontend_userparams\":\"1\",\"mailSubjectPrefix\":\"\",\"mailBodySuffix\":\"\"}' WHERE name = 'com_users' AND type = 'component';

ganti jos_extensions dengan nama table extensions user.

April 10, 2018

Download File dari Google Drive

Filed under: Uncategorized — dh @ 7:37 am

Cara download file dari google drive via ssh

buat file getfile.sh


touch getfile.sh
chmod +x getfile.sh
nano getfile.sh

Copy paste:

#!/bin/bash
fileid="### file id ###"
filename="MyFile.csv"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}

Ganti fileid dengan id file google.
Ganti filename dengan nama file asli.

fileid didapat dari share file (klik kanan di file, lalu klik Get shareable link), contoh: https://drive.google.com/open?id=1_naou3PopRVlQt9FZJTCGzRKGp306hs8
1_naou3PopRVlQt9FZJTCGzRKGp306hs8 adalah FILEID

Referensi:

https://gist.github.com/tanaikech/f0f2d122e05bf5f971611258c22c110f

Powered by WordPress