- According to Extending Python with C doc (https://docs.python.org/2/extending/extending.html).
- Some languages has built in combine with features of these two languages such as Pyrex, Cython.
- Using ctype module.
- Using a SWIG (Simple Wrapper Interface Generator)
Thursday, November 12, 2015
How to use C code in Python
Python and C combination is brilliant for programmers specially who writing network tools and exploits. For this purpose there are many ways to use both of them in one code and make the use of both languages. Previous days I was looking for a easy way(not easy actually fast way to approach my object which is make use of c code inside a python code) to do this. I was noticed there are many ways to do this. Some of them are,
Monday, June 15, 2015
How to make a remote desktop connection on Linux and Windows
Here we are going to talk about how to make remote desktop connections in Linux and Windows OSs. I think you know how to establish a RDP connection to windows machine from another windows machine. So firstly i will talk about how to establish a RDP connection to a Windows machine from Linux machine.
Note : This demonstration is for Ubuntu and Kali like linux machines
RDP from Windows to Linux
Get the terminal. And type apt-get install xrdp
It will install the XRDP on your linux system. Then type service start xrdp
This will start the XRDP service on your linux machine.
Now in the terminal type whoami. This will show you the host name of your linux. Remember it. And type ifconfig find your ip address and keep in mind.
Go to your Windows machine and get run and type mstsc. Type your linux machine's IP and click on connect. Then a windows will come with black background popup for input username and password. Make sure in front of the Module has selected the Sesman-Xvnc. On the Username field type the Hostname of your linux. On the password type it's password (login password for your linux). Click on OK. Then RDP connection to the linux machine will come.
RDP from Linux to Windows
Note : This demonstration is for Ubuntu and Kali like linux machines
RDP from Windows to Linux
Get the terminal. And type apt-get install xrdp
It will install the XRDP on your linux system. Then type service start xrdp
This will start the XRDP service on your linux machine.
Now in the terminal type whoami. This will show you the host name of your linux. Remember it. And type ifconfig find your ip address and keep in mind.
Go to your Windows machine and get run and type mstsc. Type your linux machine's IP and click on connect. Then a windows will come with black background popup for input username and password. Make sure in front of the Module has selected the Sesman-Xvnc. On the Username field type the Hostname of your linux. On the password type it's password (login password for your linux). Click on OK. Then RDP connection to the linux machine will come.
RDP from Linux to Windows
Friday, June 12, 2015
How to remove startups from registry
You know that it's not sufficient to avoid starting programs on startup by disabling the programs in startup option. They live in the registry. Some times those registries also should removed in-order to avoid them starting on the startup.
Get RUN and type regedit.
Now registry will open.You should go through two things. When we installing app it could be a 32 bit one or 64 bit one. The startup registry files of 32 bits apps will build in HKLM or HKCU (HKLM-HKEY_LOCAL_MACHINE , HKCU-HKEY_CURRENT_USER) , HKLM/Software/Wow6432node/Microsoft/Windows/Current Version/Run
or
HKCU/Software/Wow6432node/Microsoft/Windows/Current Version/Run
Startup registry files of 64 bit apps will build in
HKLM/Software/Microsoft/Windows/Current Version/Run
or
HKCU/Software/Microsoft/Windows/Current Version/Run
Deleting the remaining registry files of a app that you dont want to run on startup will work well. Specially with the malwares. Most malwares created to execute at the startup. Deleting registry files of that malware like this would end up the malware activities on your computer toatally.
Friday, May 29, 2015
How to make a Squid server and apply Rules
Proxy servers operate as an intermediary between a local network and Internet. Requests from local clients for web services can be handled by the proxy server. Squid is a high-performance HTTP and FTP caching proxy server. It is also known as a Web proxy cache. As it stores data from frequently used Web pages and files, it can often give your users the data they need without their systems having to look to the Internet.
So let's begin the tutorial.
Firstly we should install the squid in our linux system.
It's different from each linux dist but here i will get the ubuntu OS for example. And there is no more difference on these steps just browse over internet to know how to install squid to your linux OS.
Ok get the terminal and type
apt-get install squid3
As i said this is for ubuntu. apt-get install will remains as same in other Linux OSs. But dunno about squid.
Then we have to set a static IP to our server. Go to System Settings and Networks. You can change the IP, Gateway, DNS there without bothering of the commands in the terminal.
To check surely the Squid has installed in the system go to etc folder in file system or root. Try to find something like squid. In this case it's "squid3".
Go to the terminal and type
sudo nano /etc/squid3/squid.conf
Using this command we are going to open the squid.conf with nano for editing purpose.
Then you will see a more than 5000 lines of doc in there.
press ctrl+w and searching menu will appear. type visible_hostname. It will go to the point that phrase exist and when you slowly scroll down you will see under the default: , after the visible_hostname localhost or something. Give it a desired name or it's better to use your machine host name (type in the terminal hostname and enter.)
Monday, May 18, 2015
What Is A Programmable Logic Controller (PLC)?
|
How to Install Samba Server on Ubuntu
What is samba?
Samba is an easy way
to share files over Linux And Windows environment. Samba is presented by
samba.org and is an Open Source/Free Software suite that provides seamless file
and print services to SMB/CIFS clients.
Installing Samba.
lets update first the
repositories.
open a terminal and
type the following :
sudo apt-get update
now install samba
sudo apt-get install samba
now lets edit the
configuration file of samba, but before that lets backup the initial
configuration file.
cd /etc/samba/
sudo mv smb.conf backsmb.conf
Setup public folder:
First we will create
the configuration for a share folder accessible from everyone without any user
need it
Saturday, May 16, 2015
BAT Tutorial begining
Very Basic Batch Tutorial
NOTE!: Whenever something is in quotation marks ("example"), do not include the quotation marks (if you see that you must just type: example)
For those who don't know, a Batch
file is a text file containing a series of commands to be executed by Command
Prompt (CMD). When a batch file is run, CMD reads the file and executes its
commands.
To open your CMD, click START > RUN > type "CMD" > OK
(some of you may need to type "CMD.EXE")
(or you can click START > ALL PROGRAMS > ACCESSORIES > COMMAND PROMPT).
To open your CMD, click START > RUN > type "CMD" > OK
(some of you may need to type "CMD.EXE")
(or you can click START > ALL PROGRAMS > ACCESSORIES > COMMAND PROMPT).
These are some VERY basic commands
you need to know:
(please try out some of these commands in your CMD).
@echo off - This gets rid of that "c:\documents...etc"
echo - This displays a message, (e.g "echo hello" = "hello") because if you type "hello" into CMD it will interpret "hello" as the command
(please try out some of these commands in your CMD).
@echo off - This gets rid of that "c:\documents...etc"
echo - This displays a message, (e.g "echo hello" = "hello") because if you type "hello" into CMD it will interpret "hello" as the command
How to create a No-IP DDNS.
Go to https://www.noip.com
Click on the Sign-up button. Then have to do the normal Sign-up procedure. Give the email and remember the password you gave.
Go to your email and activate the account.
Login to your No-IP account.. click Sign-in up corner. Enter your User name or Email, give the password, login.
Go to Hosts / Redirects tab
Click on the Sign-up button. Then have to do the normal Sign-up procedure. Give the email and remember the password you gave.
Go to your email and activate the account.
Login to your No-IP account.. click Sign-in up corner. Enter your User name or Email, give the password, login.
Go to Hosts / Redirects tab
Subscribe to:
Posts (Atom)