Kamis, 25 Januari 2018

most recommended tools for testing

To install packages just use the same PacMan syntax as shown earlier. Below are some tools that you should have AT A MINIMUM.
  • Wireshark (wireshark-gtk)
  • Hydra (hydra)
  • Nmap (nmap)
  • Amap (amap)
  • ZAP (zaproxy)
  • Burp Suite (burpsuite)
  • Metasploit (metasploit)
  • Skipfish (skipfish)
  • SQLMap (sqlmap)
  • TCP Dump (tcpdump)
  • John The Ripper (johnny)
  • SSL Strip (sslstrip)
  • PHP (php)
  • Python (python)
  • Perl (perl)
  • Ruby (ruby)
  • GCC (gcc)
  • NASM (nasm)
  • Geany (geany)

Rabu, 10 Januari 2018

Perbaiki wifi connection di manjaro linux


modprobe iwlwifi 11n_disable=1 swcrypto=1 
or, to make it permanent, create a file /etc/modprobe.d/iwlwifi.conf containing
#/etc/modprobe.d/iwlwifi.conf
options iwlwifi 11n_disable=1 swcrypto=1


Adding ipv6.disable=1 to the kernel line disables the whole IPv6 stack, which is likely what you want if you are experiencing issues. See Kernel parameters for more information.
Alternatively, adding ipv6.disable_ipv6=1 instead will keep the IPv6 stack functional but will not assign IPv6 addresses to any of your network devices.
One can also avoid assigning IPv6 addresses to specific network interfaces by adding the following sysctl config to /etc/sysctl.d/40-ipv6.conf:
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.nic0.disable_ipv6 = 1
...
net.ipv6.conf.nicN.disable_ipv6 = 1

Selasa, 22 Agustus 2017

Sabtu, 20 Mei 2017

Disable auto start apache2 linux

sudo update-rc.d apache2 remove
You can use the argument defaults to add apache2 back into the autostart
sudo update-rc.d apache2 defaults
Then you're able to enable/disable
sudo update-rc.d apache2 disable
sudo update-rc.d apache2 enable

Jumat, 02 Desember 2016

Problem can't find -lgfortran

Just make sure you:
gcc --version
And
gfortan --version
Is the same.
/usr/bin/ 
Contains the different versions.
Eg: If gcc--version returns 4.7.3 and gfortran --version 4.8, a simple hack could be to do the following.
sudo cp /usr/bin/gcc-4.8 /usr/bin/gcc

Rabu, 30 November 2016

Problem updating R

  • Explaining the issue
    Setting up r-base-core (3.3.2-1trusty0) ...
    Preserving user changes to /usr/share/bash-completion/completions/R (renamed from /etc/bash_completion.d/R)...
    mv: cannot stat ‘/usr/share/bash-completion/completions/R’: No such file or directory
    dpkg: error processing package r-base-core (--configure):
     subprocess installed post-installation script returned error exit status 1
    
    The post-installation script (/var/lib/dpkg/info/r-base-core.postinst) didn't check if /usr/share/bash-completion/completions/R file exist before trying to move it.
  • Quick fix / Workaround
    1. Just create copy of the file.
      sudo cp /etc/bash_completion.d/R /usr/share/bash-completion/completions/R
      
    2. Fix the interrupted installation
      sudo apt-get -f install
      
  • Definitive fix
    As bodhi.zazen said, raise a bug report to the project.

Sabtu, 08 Oktober 2016

How to Import JavaCV libraries to Android Project

If you haven't yet installed the Android Development Environment, you can follow this link which contains everything you need to get started quickly. Watch the tutorial video and follow the instructions underneath to install Eclipse, the Integrated Development Environment (IDE) for Android development and create a new project.

Once you have installed everything and have created the project, use the following procedure to import JavaCV libraries to the Android project:
  1. Download the JavaCv libraries:
    a. From this link download "javacv-0.7-bin.zip" and extract the files:
    - javacpp.jar
    - javacv.jar
    - javacv-android-arm.jar
    b. From this link download "javacv-0.7-cppjars.zip" and extract the files:
    - opencv-2.4.8-android-arm.jar
    -  ffmpeg-2.1.1-android-arm.jar

  2. Go to File > New > Folder, select your project as parent folder, type "libs/armeabi" as Folder name, and click Finish.

  3. Copy javacpp.jar and javacv.jar into the "libs" folder.

  4. Extract all the *.so files from javacv-android-arm.jar, opencv-2.4.8-android-arm.jar, and ffmpeg-2.1.1-android-arm.jar directly into the "libs/armeabi" folder, without creating any of the subdirectories found in the JAR files. (The easiest way to extract the .so files from the .jar is by using 7-ZIP software which can be downloaded here).

  5. Navigate to Project > Properties > Java Build Path > Libraries and click "Add JARs...".

  6. Select both javacpp.jar and javacv.jar from the "libs" folder.

Finally,import JavaCV functions to your code
import static com.googlecode.javacv.cpp.opencv_core.*;
import static com.googlecode.javacv.cpp.opencv_imgproc.*;
import static com.googlecode.javacv.cpp.opencv_highgui.*;
and use some sample code to check that everything is working correctly.