Eclipse Market Place

Eclipse Market Place

Muitas pessoas não conhecem o Market Place do Eclipse. Nele é possível encontrar plugins muito úteis, tais como o plugin do WebSphere 7.0 para Eclipse. Enjoy!

CategoriasJAVA Tags:, ,

Performance Analysis of Logs (PAL) Tool

Performance Analysis of Logs (PAL) Tool

Para quem quer efetuar uma análise de Performance, ótima ferramenta.

Versões do Eclipse

Sempre me esqueço quais foram as versões do Eclipse e sua cronologia… E sempre tenho que procurar… fica a referência:

Codename Date Platform version Projects
N/A 21 June 2004 3.0[14]
N/A 28 June 2005 3.1
Callisto 30 June 2006 3.2 Callisto projects
Europa 29 June 2007 3.3 Europa projects
Ganymede 25 June 2008 3.4 Ganymede projects
Galileo 24 June 2009 3.5 Galileo projects
Helios 23 June 2010 3.6 Helios projects
Indigo 22 June 2011 3.7[Notes 1] Indigo projects
Juno 27 June 2012 4.2[15] Juno projects
Kepler 26 June 2013 4.3 Kepler projects
Luna 25 June 2014 (planned) 4.4 Luna projects
CategoriasJAVA Tags:,

Reverse engineering my bank’s security token

This document, was written by Thiago Valverde and was initially published at [http://blog.valverde.me/2014/01/03/reverse-engineering-my-bank's-security-token/] but for some “unknown” reason it disappeared from there…

The point is, the work/demonstration done by Thiago was truly a very good/amazing work of Reverse engineering and also it offers a service to the community, so it must be free and available.

[http://dcon.com.br/jd.comment/Reverse_Engineering_My_Banks_Security_Token.pdf] (Thx Ygor and Robertux for the pdf)

More details can be found here [https://showyou.com/v/y-k87vSrfhof4/bank-token-implemented-with-an-arduinoclone-ti-stellaris?t=Security%20token&via_user=vegbrasil]

CategoriasSegurança Tags:,

Alterar proprierades de usuário do AD com c++

dezembro 16, 2013 2 comentários

Segue um código que deve ser adaptado, o mesmo serve para alterar as propriedades de um usuário do AD com c++.

Enjoy!

<br />try{<br />String^ __path = "LDAP://Adatum.com/CN=USERS,DC=Adatum,DC=com";<br />DirectoryEntry^ parentEntry = gcnew    DirectoryEntry(__path );<br />DirectorySearcher^ search = gcnew DirectorySearcher(parentEntry);<br />search-&gt;Filter = "(SAMAccountName=fulano)";<br />SearchResult^ result = search-&gt;FindOne();<br />DirectoryEntry^ user = result-&gt;GetDirectoryEntry();<br />user-&gt;Properties["userAccountControl"]-&gt;Value = "514";<br />user-&gt;CommitChanges();<br /><br />} catch (Exception ^err) {<br />//(err-&gt;Message);<br />}<br />
Categorias.net, C#, C++ Tags:, , ,

Rodando um comando PowerShell com Visual C++

novembro 22, 2013 1 comentário

Segue um código que pode ser útil, efetuando adaptações necessárias:

try{
this-&gt;outLog-&gt;Text = this-&gt;outLog-&gt;Text + "\nHabilitando mailbox para " + this-&gt;userTxt-&gt;Text;
			
RunspaceConfiguration ^runspaceConfig = RunspaceConfiguration::Create();
Runspace ^runspace = RunspaceFactory::CreateRunspace(runspaceConfig);
// open it
runspace-&gt;Open();

Pipeline ^pipeline = runspace-&gt;CreatePipeline();
// este é o script que vou executar, repare que é um do Exchange
String ^scriptText2007 = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\PowerShell.exe -command \". 'C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\RemoteExchange.ps1'; Connect-ExchangeServer -auto; Enable-Mailbox -Identity 'corprd.bradesco.com.br/Users/" + this-&gt;userTxt-&gt;Text + "' -Alias '" + this-&gt;userTxt-&gt;Text + "'\"";
//String ^scriptText2007 = C:\\bats\\teste2.ps1;

pipeline-&gt;Commands-&gt;AddScript(scriptText2007);

Collection ^results = pipeline-&gt;Invoke();
			
runspace-&gt;Close();

StringBuilder^ stringBuilder = gcnew StringBuilder(); 
for (int i = 0; i Count; i++ ) { 
    stringBuilder-&gt;AppendLine(results[i]-&gt;ToString());
}
this-&gt;outLog-&gt;Text = this-&gt;outLog-&gt;Text + "\nParseou resultados";
IntPtr result = Marshal::StringToBSTR(results-&gt;ToString());
String ^answer= stringBuilder-&gt;ToString(); 
IntPtr ptr = Runtime::InteropServices::Marshal::StringToBSTR(answer);
this-&gt;outLog-&gt;Text = this-&gt;outLog-&gt;Text + answer;

} catch (Exception ^err) {
			this-&gt;outLog-&gt;Text = this-&gt;outLog-&gt;Text + "\nERRO Habilitar MailBox";
			IntPtr msg = Marshal::StringToBSTR(err-&gt;Message);
			this-&gt;outLog-&gt;Text = this-&gt;outLog-&gt;Text + err-&gt;Message;
}

Enjoy!

CategoriasC++, PowerShell, Windows Tags:,

Verificando a versão do PowerShell

Para verificar a versão do PowerShell instalada em sua máquina, basta efetuar os comandos abaixo:
Get-Host
e
$PSVersionTable

Exemplo:
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.

PS C:\Users\Kim_Akers> Get-Host
Name : ConsoleHost
Version : 3.0
InstanceId : 06e6c494-3f7b-4771-ad2f-4d7e4f649d3c
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace

PS C:\Users\Kim_Akers> $PSVersionTable
Name Value
—- —–
WSManStackVersion 3.0
PSCompatibleVersions {1.0, 2.0, 3.0}
SerializationVersion 1.1.0.1
BuildVersion 6.2.9200.16398
PSVersion 3.0
CLRVersion 4.0.30319.1
PSRemotingProtocolVersion 2.2

PS C:\Users\Kim_Akers>

Enjoy

Seguir

Obtenha todo post novo entregue na sua caixa de entrada.

Junte-se a 149 outros seguidores