Tuesday, April 26, 2011

Another web server daemon is already running

Jika mengalami kejadian dibawah ini:

Starting XAMPP for Linux 1.7.2...
XAMPP: Another web server daemon is already running.
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Kemungkinannya bisa seperti ini:
1) Ada apache web server lain yg hidup, jadi matikan apache webserver tersebut dengan perintah berikut:
sudo /etc/apache2 stop

2) Jika anda menggunakan apache tomcat ini bisa menyebabkan hal yang sama. Jadi jika ingin menggunakan kedua-duanya, nyalakan dulu xampp baru kemudian apache tomcat.
Untuk menyalakan dan mematikan apache tomcat bisa seperti ini:
Menyalakan:
- /sh shutdown.sh
Mematikan:
- /sh startup.sh

Friday, April 01, 2011

Daftar Web site untuk kebutuhan security atau keamaman web anda

Ini daftar web site untuk kebutuhan security atau keamanan web

Free Dynamic Web Application Security Scanners
Burp Scanner http://www.portswigger.net
Paros Proxy http://www.parosproxy.org
OWASP WebScarab http://www.owasp.org
Grabber http://rgaucher.info/beta/grabber/
Nikto http://www.cirt.net/nikto2
ratproxy http://code.google.com/p/ratproxy/
w3af http://w3af.sourceforge.net/
skipfi sh http://code.google.com/p/skipfi sh/
Netsparker http://www.mavitunasecurity.com/netsparker/
Browser DOM Checker http://code.google.com/p/dom-checker/

Commercial Dynamic Web Application Security Scanners
Acunetix Web Vulnerability Scanner http://www.acunetix.com
Cenzic Hailstorm http://www.cenzic.com
Syhunt Sandcat Scanner http://www.syhunt.com/?n=Sandcat.Sandcat
HP WebInspect https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-201-200^9570_4000_100__
IBM AppScan http://www-01.ibm.com/software/awdtools/appscan/
NTObjectives NTOSpider http://www.ntobjectives.com




Sample Web Applications for Security Testing
Gruyere (live) http://google-gruyere.appspot.com/
FreeBank Online (live) http://zero.webappsecurity.com/
Crack Me Bank (live) http://crackme.cenzic.com/

AltoroMutual (live) http://demo.testfi re.net/
Acunetix Acublog http://testaspnet.vulnweb.com (registration required)
Hacme Travel http://www.foundstone.com/us/resources/proddesc/hacmetravel.htm
Hacme Bank http://www.foundstone.com/us/resources/proddesc/hacmebank.htm
Hacme Shipping http://www.foundstone.com/us/resources/proddesc/hacmeshipping.htm
Hacme Casino http://www.foundstone.com/us/resources/proddesc/hacmecasino.htm
Hacme Books http://www.foundstone.com/us/resources/proddesc/hacmebooks.htm
SecuriBench http://suif.stanford.edu/~livshits/securibench/
SecuriBench Micro http://suif.stanford.edu/~livshits/work/securibench-micro/
OWASP WebGoat http://www.owasp.org/index.php/OWASP_WebGoat_Project



Command-line Tools
cURL http://curl.haxx.se/
Netcat http://netcat.sourceforge.net/
OpenSSL http://www.openssl.org/
Stunnel http://www.stunnel.org/



Crawling Tools
Wget http://www.gnu.org/software/wget/
crawler4j http://code.google.com/p/crawler4j/
HTTrack http://www.httrack.com/



Code Analysis Tools
Java Decompiler http://java.decompiler.free.fr/
JAD http://www.varaneckas.com/jad
Armorize CodeSecure http://www.armorize.com/
Checkmarx CxSuite http://www.checkmarx.com/
Fortify 360 http://www.fortify.com/
Veracode http://www.veracode.com/
Splint http://www.splint.org/
Valgrind http://www.valgrind.org/
Flawfi nder http://www.dwheeler.com/fl awfi nder/
RATS http://www.fortify.com/security-resources/rats.jsp
FXCop http://msdn.microsoft.com/en-us/library/bb429476(VS.80).aspx
ITS4 http://www.cigital.com/its4/
PREfast http://msdn.microsoft.com/en-us/library/ms933794.aspx
OunceLabs Ounce http://www.ouncelabs.com/
Coverity Static Analysis http://www.coverity.com/products/static-analysis.html
OWASP Orizon http://www.owasp.org/index.php/Category:OWASP_
Orizon_Project FindBugs http://fi ndbugs.sourceforge.net/
Jlint http://jlint.sourceforge.net/
CAT.NET http://www.microsoft.com/downloads/details.aspx?FamilyId=0178e2ef-9da8-445e-9348-
c93f24cc9f9d&displaylang=en

Red Gate.NET Reflector http://www.red-gate.com/products/refl ector/




Binary Analysis
Open Reverse Code Engineering(OpenRCE) http://www.openrce.org
OllyDbg http://www.ollydbg.de
IDA Pro http://www.datarescue.com
WinDbg http://www.microsoft.com/whdc/devtools/debugging/default.mspx
Profi ling Tools Httprint http://net-square.com/httprint/
SiteDigger http://www.foundstone.com/us/resources/proddesc/sitedigger.htm
Wayback Machine http://web.archive.org
GoogleDiggity http://www.stachliu.com
BingDiggity http://www.stachliu.com
Maltego http://www.paterva.com
Shodan http://www.shodanhq.com/





Monday, January 24, 2011

Menghitung Interval Waktu dan Hari dari Awal Registrasi di MySQL

SELECT
tgl_masuk AS 'Tgl Masuk',NOW(),
DATEDIFF(NOW(), tgl_masuk) AS hari,
TIMEDIFF(NOW(), tgl_masuk) AS waktu,
FROM user;

Hasilnya Kira-kira seperti ini:

|-----Tgl Masuk-------|--------NOW()--------|-hari-|--waktu--|
|1/24/2011 7:00:00 AM |1/24/2011 9:37:29 AM | 0 |02:37:29 |

Wednesday, January 12, 2011

Contoh memanggil Web Service SOAP melalui Java Client

import javax.xml.rpc.Call;
import javax.xml.rpc.Service;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceFactory;


public class WMClientInvoke {

private static String qnameService = "bhangunWSDL_bhangunService";
private static String qnamePort = "bhangunWSDL_bhangunPortType";
private static String endpoint ="http://localhost:5555/soap/rpc";
private static String BODY_NAMESPACE_VALUE ="bhangunWSDL.bhangun";
private static String ENCODING_STYLE_PROPERTY =
"javax.xml.rpc.encodingstyle.namespace.uri";
private static String URI_ENCODING =
"http://schemas.xmlsoap.org/soap/encoding/";

public static void main(String[] args) {



try {

ServiceFactory factory =
ServiceFactory.newInstance();
Service service =
factory.createService(new QName(qnameService));

QName port = new QName(qnamePort);

Call call = service.createCall(port);
call.setTargetEndpointAddress(endpoint);
call.setProperty(Call.USERNAME_PROPERTY,"myusername");
call.setProperty(Call.PASSWORD_PROPERTY,"mypassword");
call.setProperty(Call.SOAPACTION_USE_PROPERTY,
new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY,
URI_ENCODING);


call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
"panggilNama"));
call.addParameter("nama", new QName(
"http://www.w3.org/2001/XMLSchema", "string"),
String.class, javax.xml.rpc.ParameterMode.IN);
call.setReturnType(new QName(
"http://www.w3.org/2001/XMLSchema", "string"));
String[] params = { "bhangun" };

String result = (String)call.invoke(params);
System.out.println(result);

} catch (Exception ex) {
ex.printStackTrace();
}
}
}

Friday, July 30, 2010

Maven Spring Source Repository


Obtaining Spring Releases From Maven Central

You do not have to add a repository to your .pom to obtain final releases of Spring projects from Maven Central. Simply add the dependencies your project requires.

A .pom snippet for each Spring Framework 3 artifact as it will be indexed in Maven Central is listed below.
view source
print?
001
002
003 3.0.0.RELEASE
004

005
006
010
011 org.springframework
012 spring-core
013 ${org.springframework.version}
014

015
016
020
021 org.springframework
022 spring-expression
023 ${org.springframework.version}
024

025
026
030
031 org.springframework
032 spring-beans
033 ${org.springframework.version}
034

035
036
040
041 org.springframework
042 spring-aop
043 ${org.springframework.version}
044

045
046
050
051 org.springframework
052 spring-context
053 ${org.springframework.version}
054

055
056
060
061 org.springframework
062 spring-context-support
063 ${org.springframework.version}
064

065
066
071
072 org.springframework
073 spring-tx
074 ${org.springframework.version}
075

076
077
081
082 org.springframework
083 spring-jdbc
084 ${org.springframework.version}
085

086
087
092
093 org.springframework
094 spring-orm
095 ${org.springframework.version}
096

097
098
103
104 org.springframework
105 spring-oxm
106 ${org.springframework.version}
107

108
109
114
115 org.springframework
116 spring-web
117 ${org.springframework.version}
118

119
120
124
125 org.springframework
126 spring-webmvc
127 ${org.springframework.version}
128

129
130
134
135 org.springframework
136 spring-webmvc-portlet
137 ${org.springframework.version}
138

139
140
144
145 org.springframework
146 spring-test
147 ${org.springframework.version}
148 test
149

Obtaining Spring Releases From The Enterprise Bundle Repository (EBR)

To obtain final releases of Spring projects from the EBR, add the following repositories to your .pom:
view source
print?
01
02 com.springsource.repository.bundles.release
03 EBR Spring Release Repository
04 http:// repository.springsource.com/maven/bundles/release
05

06
07 com.springsource.repository.bundles.external
08 EBR External Release Repository
09 http:// repository.springsource.com/maven/bundles/external
10


Then simply add the dependencies your project requires, keeping in mind the EBR artifact naming conventions.

A .pom snippet for each Spring Framework 3 artifact as it will be indexed in the EBR is listed below:
view source
print?
001
002
003 3.0.0.RELEASE
004

005
006
010
011 org.springframework
012 org.springframework.core
013 ${org.springframework.version}
014

015
016
020
021 org.springframework
022 org.springframework.expression
023 ${org.springframework.version}
024

025
026
030
031 org.springframework
032 org.springframework.beans
033 ${org.springframework.version}
034

035
036
040
041 org.springframework
042 org.springframework.aop
043 ${org.springframework.version}
044

045
046
050
051 org.springframework
052 org.springframework.context
053 ${org.springframework.version}
054

055
056
060
061 org.springframework
062 org.springframework.context.support
063 ${org.springframework.version}
064

065
066
071
072 org.springframework
073 org.springframework.transaction
074 ${org.springframework.version}
075

076
077
081
082 org.springframework
083 org.springframework.jdbc
084 ${org.springframework.version}
085

086
087
092
093 org.springframework
094 org.springframework.orm
095 ${org.springframework.version}
096

097
098
103
104 org.springframework
105 org.springframework.oxm
106 ${org.springframework.version}
107

108
109
113
114 org.springframework
115 org.springframework.web
116 ${org.springframework.version}
117

118
119
123
124 org.springframework
125 org.springframework.web.servlet
126 ${org.springframework.version}
127

128
129
133
134 org.springframework
135 org.springframework.web.portlet
136 ${org.springframework.version}
137




org.springframework
org.springframework.test
${org.springframework.version}
test

Obtaining Spring Milestone Releases

Milestones and Release Candidates may not be published directly to Maven Central, and in general are published separately from final releases. SpringSource hosts two repositories for obtaining Spring milestones. The first one should be used in conjunction with Maven Central, and the second one in conjunction with the EBR.
Obtaining Milestones from the Maven Central Compatible Repository

To obtain Spring milestones from the Maven Central compatible repository, add the following repository to your .pom:
view source
print?

org.springframework.maven.milestone
Maven Central Compatible Spring Milestone Repository
http:// maven.springframework.org/milestone


The milestone version number format is ...M#; for example, 3.0.0.M4. The release candidate version number format is ...RC#; for example, 3.0.0.RC3.

For example, adding the following dependency would retrieve version 3.0.0.RC3 of the spring-context artifact:
view source
print?

org.springframework
spring-context
3.0.0.RC3

Obtaining Milestones from the Enterprise Bundle Repository (EBR)

To obtain Spring milestones from the EBR, add the following repository to your .pom:
view source
print?

com.springsource.repository.bundles.milestone
EBR Spring Milestone Repository
http:// repository.springsource.com/maven/bundles/milestone


Be sure to keep in mind the distinct EBR artifact naming convention. For example, adding the following dependency would retrieve version 3.0.0.RC3 of the org.springframework.context artifact:
view source
print?

org.springframework
org.springframework.context
3.0.0.RC3

Obtaining Nightly Spring Snapshots

Snapshots of Spring projects are published each night, allowing users to verify that reported issues have been resolved before the next release. Like Milestones, there is a separate Maven Central compatible snapshot repository and an EBR snapshot repository.
Obtaining Snapshots from the Maven Central Compatible Repository

To obtain Spring nightly snapshots from the Maven Central compatible repository, add the following repository to your .pom:
view source
print?

org.springframework.maven.snapshot
Maven Central Compatible Spring Snapshot Repository
http:// maven.springframework.org/snapshot


The snapshot version format is ...BUILD-SNAPSHOT; for example, 3.0.1.BUILD-SNAPSHOT.

For example, adding the following dependency would retrieve the latest snapshot of the spring-context artifact:
view source
print?

org.springframework
spring-context
3.0.1.BUILD-SNAPSHOT


Notice the ...BUILD-SNAPSHOT format differs slightly from the traditional Maven 2 snapshot format of ..-SNAPSHOT. This is because x.y.z-SNAPSHOT is not a valid OSGi version number. All Spring projects now follow the OSGi version numbering scheme (Maven 3 will as well).
Obtaining Snapshots from the Enterprise Bundle Repository (EBR)

To obtain Spring nightly snapshots from the EBR, add the following repository to your .pom:
view source
print?

com.springsource.repository.bundles.snapshot
EBR Spring Snapshot Repository
http:// repository.springsource.com/maven/bundles/snapshot


As an final example, adding the following dependency would retrieve the latest snapshot of the org.springframework.context artifact:
view source
print?

org.springframework
org.springframework.context
3.0.1.BUILD-SNAPSHOT


sumber: http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/

This Day in History